watchOS 3
The watchApp  has NotificationController ← WKUserNotificationInterfaceController

watchApp gets a Local Notification with one associated UNNotificationAction 
with title = “Accept”

[NotificationController init]
[NotificationController didReceiveNotification:withCompletion:]
[NotificationController willActivate]

now the notification is shown with two buttons:
“Accept”
“Dismiss”

So  far ok.

But I have no idea how to tell whether the user did click on “Accept” or 
“Dismiss” .

On iOS I would use the UNUserNotificationCenterDelegate method
userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
but this is never called on watchOS.

It is called on the paired iOS app, but this does not help much. The watchApp 
needs to know whether the user did accept the Notification or not.

Gerriet.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to