In handleActionWithIdentifier:forLocalNotification:
's docs, this method is declared that deprecated from WatchOS 2.0
I looked for App Programming Guide for watchOS
, at Notification section, they suggest using UNUserNotificationCenter of UserNotifications framework. But this framework does require WatchOS >= 3.0
How do my app adapt to WatchOS 2.0 user?
For WatchOS 2.0 you have to implement the deprecated method handleActionWithIdentifier:forLocalNotification:
. The method has been deprecated with the introduction of the UserNotifications
framework. As this framework is not available on WatchOS before 3.0, the deprecated method is the way to go for older versions.