iOS 10: push notifications delegates not called

Originator:jan.chaloupecky
Number:rdar://27935982 Date Originated:20/08/2016
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10 beta 7
Classification: Reproducible:Always
 
Summary:
On iOS 10 beta 7, when the user taps on a received remote notification while the app was in background, the ApplicationDelegate method 


- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler

is NOT called.

We realised that if implemented, the legacy method 

-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

is called in this case.

This breaks backward compatibility and would force us to update

Steps to Reproduce:
- Implement the method -[AppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:]
- Send app to background using the home button
- Send a remote user  notification to that app
- Tap on the received notification

Expected Results:
The delegate method -[AppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] is called

Actual Results:
No notification delegate method is called.

Comments


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!