I am trying to receive silent push notification when the app is totally off, but I'm not getting the push, what am I missing?
I added in split: Required background modes -> App downloads content in response to push notifications
I implement in the
AppDelagate
:func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) { completionHandler(UIBackgroundFetchResult.NewData); JLToast.makeText("background").show()}
I send a push:
aps { content-available: 1 }
When the app is in background, I get the silent push notification, but when the app is out of background (totally shot down), I don't get the push.
What is missing?