Silent Push does not work in iOS 11 Beta 8

Originator:thomas.einwaller
Number:rdar://34139840 Date Originated:2017/08/29
Status:Open Resolved:
Product:iOS Product Version:iOS 11 Beta 8
Classification:Bug Reproducible:Yes
 
Area:
Notifications

Summary:
When sending a silent push with "content-available": 1 the method application:didReceiveRemoteNotification:fetchCompletionHandler is not called anymore

Steps to Reproduce:
Install attached pushtest app on iOS 11 Beta 8 Device and send a silent push with the content

{  
  "aps": {  
    "content-available": 1  
  }
}

Expected Results:
application:didReceiveRemoteNotification:fetchCompletionHandler should be called

Observed Results:
application:didReceiveRemoteNotification:fetchCompletionHandler is not called, instead I get the following error in the console:

<NSXPCConnection: 0x123f43620> connection from pid 58: Exception caught during decoding of received message, dropping incoming message.
Exception: Exception while decoding argument 0 (#2 of invocation):
Exception: value for key 'NS.objects' was of unexpected class 'NSNull'. Allowed classes are '{(
    NWParameters,
    NWEndpoint,
    NSArray,
    NSData,
    NSString,
    NSNumber,
    NSDictionary,
    NSUUID,
    _DASActivity,
    NSSet,
    _DASFileProtection,
    NSDate
)}'.

Version:
iOS 11 beta 8 15A5368a

Notes:
Exactly the same app with the same push content is working on iOS 10.3.3

Comments

Apple Developer Relations just added a comment to my radar

We believe this issue is resolved in the latest iOS 11.2 beta.

Please test with the latest iOS beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate.

https://developer.apple.com/download/

currently installing 11.2 beta - will test with it

By thomas.einwaller at Oct. 30, 2017, 7:45 p.m. (reply...)

Did we get any update on this ? i am getting this issue on 11.0.3 also.

Any updates?

This issue is still happening and iOS11 has been deployed to the public.

Am experiencing the same behaviour but notice the following -

When phone is plugged in silent notifications are received by the app in background and foreground mode When phone is not plugged in silent notifications are received when the app is in the foreground. However when the app is in the background there is a significant delay before the notification is 'delivered' by the OS to the app.

Am going to submit a bug report to Apple to using the sysdiagnosis tool - https://download.developer.apple.com/iOS/iOS_Logs/sysdiagnose_Logging_Instructions.pdf

By ste.edinburgh at Sept. 27, 2017, 3:30 p.m. (reply...)

September 12 2017, 5:27 PM Apple Developer Relations

A solution is under investigation. We will follow up with you again when it is available.

By thomas.einwaller at Sept. 21, 2017, 9 a.m. (reply...)

Hi, I reported the same problem and also created this SO thread if it can help. https://stackoverflow.com/questions/44796613/silent-pushes-not-delivered-to-the-app-on-ios-11

By jan.chaloupecky at Sept. 19, 2017, 6:30 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!