Reputation: 138
I have a question regarding iOS 11
Push notifications.
Our app doesn’t receive Push notification after the update to iOS 11. It was working fine in iOS 10.
The provisioning files, code signs, and environment for distribution (App Store, TestFlight) have not changed.
Could you let me know what else we can check?
Upvotes: 2
Views: 2002
Reputation: 1177
If you are using the PushWoosh iOS SDK, you will need to upgrade to v5.3.7 or higher for iOS 11 compatibility. If using Cordova (PhoneGap), upgrade your plugin to v7.0.7 or higher.
iOS major version releases involve APNS architectural breaking changes and PushWoosh SDKs and plugins must be upgraded accordingly. This was the case with at least iOS 10 and 11 now. Expect more of the same for iOS 12 one day.
Upvotes: 3
Reputation: 1760
There are few checklist, you should check
Your app sends latest device token to the app’s associated provider. Never cache device tokens in your app; instead, get them from the system when you need them. APNs issues a new device token to your app when certain events happen. e.g
when a user restores a device from a backup, when the user installs your app on a new device, and when the user reinstalls the operating system
Make sure payload does not exceed the maximum limit. APNs refuses notifications whose payload exceeds the maximum allowed size. Check payload size:
- For regular remote notifications, the maximum size is 4KB (4096 bytes).
- For Voice over Internet Protocol (VoIP) notifications, the maximum size is 5KB (5120 bytes)
Make sure payload contains an aps
dictionary with a simple alert message. The acme2
key contains an array of app-specific data.
{
"aps" : { "alert" : "Message received from Bob" },
"acme2" : [ "bang", "whiz" ]
}
Thanks!
Upvotes: 2