2
votes

I am triggering a silent push notification in my background and in didReceiveRemoteNotification: fetchCompletionHandler: method I'm firing a local notification to check whether silent notifications are fired or not.

The behaviour of silent notifications is unreliable so far as it doesn't fire every time.

I have already enabled the background mode and remote notifications from the capabilities.

I want to fire silent notifications when the app is in the background state or when the app goes in suspended state.

This is my APN's load

1

1 Answers

0
votes

Add an empty sounds string the payload and check for the delivery. Change your payload something like this..

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