Silent ios push notification ios8 doesn´t call not running app

Hi,


I have seen in several places that push notification could wake up app and put it in background but I am not sure if it is possible to do the same if the app is not running.


What I am using is:


UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound|UIUserNotificationActivationModeBackground|UIUserNotificationActivationModeForeground categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings];
[[UIApplication sharedApplication] registerForRemoteNotifications];


To register push notification. And :


- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
    DDLogVerbose(@"Remote notification :%@    ", userInfo);
}


I am using this for payload to the apns

:
{ aps = { "content-available" = 1; "alert" = ""; }; }


I also have enabled push notification in background but I am not able to do the system receive silent push notification when the app is not running.

We have faced similar issue using the payload json


{ "content-available" : 1, "alert":"" }


According to the Docs:

The

aps
dictionary can also contain the
content-available
property. The
content-available
property with a value of 1 lets the remote notification act as a “silent” notification. When a silent notification arrives, iOS wakes up your app in the background so that you can get new data from your server or do background information processing. Users aren’t told about the new or changed information that results from a silent notification, but they can find out about it the next time they open your app.

hi,

Have you solved this problem , because i also got this problem.

Two options where content-available will not open the app:

1. User killed the app from background apps.

2. Device was restarted.


We had the same issue and now we do the following:

If app didn't ack the server in 7 sec (approx) the server will send another regular push (without content-available).

Regular push will hit the device ALWAYS.

Hi, Noami!

Are you resolve your issue?

Silent ios push notification ios8 doesn´t call not running app
 
 
Q