Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios 10 Notifications click does nothing

Tags:

ios

swift

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

like image 912
user2848975 Avatar asked Jan 23 '26 20:01

user2848975


1 Answers

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:
like image 86
inga Avatar answered Jan 25 '26 11:01

inga