0

I observed that interactive notifications are not working on older devices for iOS 10. My app had functionality to show "Yes","No" buttons when notification is swiped left. I see that this doesn't work on iOS 10. Only way to see the buttons is by 3d touch.

I also read this is possible using the new frameworks which apple has introduced in iOS 10. For now, I don't have time to go through the framework and write new code as my release date is very near.

Is using the new frameworks the only way to support interactive notifications on iOS 10?

Alok
  • 659
  • 1
  • 6
  • 9

1 Answers1

0

There are some changes in ios 10. So you need to implement instead of "UIUserNotification" to "UNNotification" to work in ios 10 use this

UNAuthorizationOptions authOptions = UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge; [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:authOptions completionHandler:^(BOOL granted, NSError * _Nullable error) { } ];

DURGESH
  • 2,373
  • 1
  • 15
  • 13