3

My code for notification execution is present in didRecieveRemoteNotification method in AppDelegate. When a notification comes and is clicked on, the action is performed in iOS9 and iOS8, but in iOS10 nothing happens. On clicking the notification the app just opens.

I know this can be fixed with the new functions available in Xcode8 but what is the reason it is not working here?

I have seen some other apps, whose notifications work in iOS10 properly

user2848975
  • 117
  • 1
  • 12

1 Answers1

4

Please see https://forums.developer.apple.com/message/169625#169625. Apparently, iOS 10 doesn't call the method:

application:didReceiveRemoteNotification:fetchCompletionHandler:

Instead, it calls

application:didReceiveRemoteNotification:
inga
  • 3,154
  • 1
  • 25
  • 29