iosamazon-snsios13xcode11usernotifications

Background notifications broken in iOS 13+


Has anyone found a solution to broken background (silent) notifications (with content-available = 1) on iOS 13? These notifications continue to be received normally on iOS 12.

Setting apns-push-type = 'background' and apns-priority = 5 as suggested in the WWDC presentation does not seem to fix the issue. Seems these headers not obligatory anyway - Apple says here that:

The background push type is required on watchOS 6 and later. It is recommended on macOS, iOS, tvOS, and iPadOS.

Indeed they haven't even updated their page on "Pushing Background Updates to Your App" to mention these new headers.

I'm using AWS SNS. XCode Version 11.1. iOS 13.1.2.

And here is the payload I'm using (PHP):

$apnspayload = array('aps' => array('content-available' => 1,
                                    'apns-push-type' => 'background',
                                    'apns-priority' => 5,
                                    'userid' => $userid,
                                    'category' => 'SILENT_TYPE'));

UPDATE: Still broken with XCode Version 11.2 beta 2 and iOS 13.2 beta 2.

UPDATE 2: iOS version 13.1.3 fixes this issue. Not Amazon's fault.


Solution

  • iOS version 13.1.3 fixes this issue. Not Amazon's fault.