Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 Silent Push Notification doesn't work in background when application not connected to the xcode

Tags:

ios7

iOS 7 Silent Push Notification doesn't work in background when application not connected to the xcode.

I used following payload and when application is in background/foreground/background & connected to the xcode, control comes in application:didReceiveRemoteNotification:fetchCompletionHandler method

but when application is in background and not connected to the xcode this method never gets called.

The payload used:

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

like image 753
Bhagyashree Avatar asked Nov 01 '22 10:11

Bhagyashree


1 Answers

Seems like the payload is incorrect. It needs to children to the "aps" key.

like image 173
grandnasty Avatar answered Nov 08 '22 13:11

grandnasty