• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
watchOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Representing an object graph
  • Next by Date: Elementary NSUserDefaults Question
  • Previous by thread: Re: UINavigationBar content margins in UIPresentationController subclass
  • Next by thread: Elementary NSUserDefaults Question
  • Index(es):
    • Date
    • Thread