2

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?

7
  • Have you tried obtaining the push notification token and used something APNS tester or other test utility to directly send it? Oct 23, 2017 at 2:47
  • @MitchellCurrie Hi, Mr. Currie. Thanks for the comment. I tried, but any push notification not comes. And I added some logger to handlers(UNUserNotificationCenter). But I couldn't see any logs.
    – sinwoobang
    Oct 23, 2017 at 2:52
  • I'm voting to close this question as off-topic because this is about APNS support issues that should be directed at Apple Support. Oct 23, 2017 at 3:08
  • I have an own Push Server and I am pushing notification toward apps on iOS 10/11 continuously, so it is definitely not APNS... please provide more information about how you have set up the actual connection or generated the certs, because that is too board at the moment.
    – holex
    Oct 24, 2017 at 10:51
  • We have been having this problem as well using {"aps":{"content-available":1}} as the payload. It just doesn't trip the delegate methods foreground or background. We need the app to wake and download in the background so this is killing us. Which payload are you using?
    – Farlo
    Oct 31, 2017 at 15:26

2 Answers 2

3

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.

1
  • 1
    I resolved it by update SDK. Thanks.
    – sinwoobang
    Nov 23, 2017 at 4:19
2

There are few checklist, you should check

  • Ensure your provider has valid APNS certificates
  • Make sure app has been registered with APNS server successfully.
  • 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!

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.