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