react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
753 stars 288 forks source link

Notification received but not triggred by OnNotificaiton? [IOS] #406

Closed ZanaNabaz closed 1 year ago

ZanaNabaz commented 1 year ago

I have an application that uses push notification, its been working great on ios and android. However I noticed that the notifications are showing, but when pressed its not doing anything and OnNotification: fucntion (notificaion){} is not triggered even when i can see the notificaion being delivered.

It worked for a few weeks ago, and not it just stopped on ios ? Is there something I need to do? Did apple update something ?

ZanaNabaz commented 1 year ago

Found out that this is required for silent notifications:


    "apns": {
                                        "headers": {
                                            "apns-priority": "5"
                                        }
                                    },
                                    "content_available": true,
                                    "priority": "high"  
}

Notifications are working again after adding this to my post request.