title: Push notification - alert missing from payload
body: <p>This is the <code>userInfo</code> I am getting in <code>didReceiveRemoteNotification</code>  </p>
  
  <pre><code>    aps =     {
          badge = 2;
          sound = default;
      };
      u = "{\"custom\":{\"redirectlink\":\"groupdetail.html?groupid=314416&amp;selectedtabid=5\"}}";
  } 
  </code></pre>
  
  <p>Clearly alert field is missing here. This is what I tried to make to handle missing alert :    </p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
     [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
      NSMutableDictionary *pushDict = [NSMutableDictionary dictionaryWithDictionary:[userInfo objectForKey:@"aps"] ];
      BOOL isSilentPush = [[pushDict objectForKey:@"content-available"] boolValue];
      [pushDict setObject:@"You have a notification" forKey:@"alert"];
      NSMutableDictionary * mut = [NSMutableDictionary dictionaryWithDictionary:userInfo]; //[userInfo copy];
      [mut setObject:pushDict forKey:@"aps"];
      //[mut setObject:@"5@" forKey:@"p"];
      if (isSilentPush) {
          NSLog(@"Silent push notification:%@", userInfo);
  
          //load content here
  
          // must call completionHandler
          completionHandler(UIBackgroundFetchResultNewData);
      }
      else {
          [[PushNotificationManager pushManager] handlePushReceived:mut];
  
          // must call completionHandler
          completionHandler(UIBackgroundFetchResultNoData);
      }
  } 
  </code></pre>
  
  <p>But this does not generate a <strong>banner</strong> notification. Only badge, sound and alert is generated.<br>
  I know this should be handled from server side and not from <code>iOS</code> application, but the server guy will be back in 2 days and I have a demo to show.   </p>