Get push notification while App in foreground iOS

I am using push notification service in my app. When app is in background I am able to see notification on notification screen(screen shown when we swipe down from top of iOS device). But if application is in foreground the delegate method – (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo is getting called but notification is not displayed in notification … Read more

Will iOS launch my app into the background if it was force-quit by the user?

I am triggering a background fetch by using the content-available flag on a push notification. I have the fetch and remote-notification UIBackgroundModes enabled. Here is the implementation I am using in my AppDelegate.m: – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { NSLog(@”Remote Notification Recieved”); UILocalNotification *notification = [[UILocalNotification alloc] init]; notification.alertBody = @”Looks like i … Read more

Android Push Notifications: Icon not displaying in notification, white square shown instead

My app generates a notification, but the icon I set for that notification is not being displayed. Instead, I get a white square. I have tried resizing the png of the icon (dimensions 720×720, 66×66, 44×44, 22×22). Curiously, when using smaller dimensions the white square is smaller. I have googled this problem, as well as … Read more

Does Android support near real time push notification?

I recently learned about the ability of iPhone apps to receive nearly instantaneous notifications to apps notifications to apps. This is provided in the form of push notifications, a bespoke protocol which keeps an always on data connection to the iPhone and messages binary packets to the app, which pops up alerts incredibly quickly, between … Read more