Home Ask Login Register

Developers Planet

Your answer is one click away!

4thSpace February 2016

Capturing user click in glance?

Is there a way to capture when the user clicks/presses your glance? This action throws them into the WatchApp. I'd like to intercept this click before going into the main app.

I'm running the glance in the watch simulator.


rickster February 2016

Per App Programming Guide for watchOS:

  1. At some time while your glance is active (ideally, as early as possible, since you don't know how long your glance will remain active), call updateUserActivity:userInfo:webpageURL: with whatever cue you want to pass along to your app.
  2. When the user launches your app from the glance, its main interface controller will receive a handleUserActivity: message containing the info you passed in step 1.

Post Status

Asked in February 2016
Viewed 3,860 times
Voted 9
Answered 1 times


Leave an answer

Quote of the day: live life