watchOS
watchOS
- Subject: watchOS
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 07 Dec 2016 14:23:41 +0700
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 (email@hidden)
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:
This email sent to email@hidden