Hi All,
I am using silent push data notifications in my iOS App which is used to process some information (not making any API call when silent push is received, just parsing some json dictionary to update state on UI) in background & display data to user. I was conducting some performance test to observe the reliability of silent push notifications for my App & observed the following:
- I was testing silent push notifications on 5 iPhone devices
- Only 4 out of 5 iPhones received this silent push
- In order to see if the iOS itself is blocking these notifications I have reset the settings of iPhone from settings app & this 5th iPhone started receiving silent push notifications without any issues
I know silent push notifications are not guaranteed since they have a low priority than visible push notifications & depends on network conditions of my iPhone. I have ensured all the iPhones I was testing were on WiFi with strong internet connection, not on a low power mode, to ensure the push reliability.
Please suggest me what exactly I am doing wrong in my setup, as some of the iPhones I am testing suddenly stops receiving silent push notifications for my mobile App & they are back to normal after I reset the settings of iPhone from settings App.
I have tried various things like:
- Setting the apns-push-type header
- Setting apns-topic
- Setting apns-priority
None of them seem to work. Only resetting the settings from settings App is bringing my mobile app to normal state to receive silent push notifications. Not sure at this point what is making my Mobile App to suddenly stop receiving silent push notifications.
Below is the setup I have for my push notification delivery
(My company Notification server) -> (Firebase Cloud Messaging Server) -> APNS -> (My Mobile App)
All My iPhones are on iOS 15.2 & above
I really appreciate any help from any of you, as this is a critical issue that is blocking my production app & I ran out of options trying to fix this issue.