Is there a way to wake up the app on receiving remote notifications?
If I delete the app from app preview, I don't get the remote notification. On getting the notification I have to download few images.
How do I achieve this?
Is there a way to wake up the app on receiving remote notifications?
If I delete the app from app preview, I don't get the remote notification. On getting the notification I have to download few images.
How do I achieve this?
I think you want to use the content-available
key in your payload:
Provide this key with a value of 1 to indicate that new content is available. Including this key and value means that when your app is launched in the background or resumed, application:didReceiveRemoteNotification:fetchCompletionHandler: is called.
You can change your target's launch settings in "Manage Scheme" to Wait for <app>.app to be launched manually
, which allows you debug by setting a breakpoint in application: didReceiveRemoteNotification: fetchCompletionHandler:
and sending the push notification to trigger the background launch.