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
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With