Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

watchOS 2: haptic feedback in background

I think I know the answer to this question already, but I wanted to ask just to be thorough.

Consider the Apple Watch built-in Maps app. When you're using turn-by-turn directions, when it's time to turn left or right, the watch plays a custom haptic pattern - even though the screen is off and the app is backgrounded. Another example is while you're doing a workout - if you've set a goal, you'll get a light tap on your wrist when you get 50% there and 100% there, even if you're not looking at the watch at the time (screen off, app backgrounded).

In watchOS 2, is there any way for us 3rd party developers to have an app play a certain haptic pattern when the screen is off and the app is backgrounded? I know the playHaptic: method works while the app is active to let you play several different kinds of haptic patterns, and I know that while the app is inactive, you can have a notification come in - but the notification would only ever play the 'notification' haptic feeling, no choice in that.

like image 561
UberJason Avatar asked Jul 29 '15 18:07

UberJason


People also ask

Does Apple Watch update in background?

The App Programming Guide for watchOS, however seems to exclude the possibility of running in the background to receive location updates as it only allows background processing for four classes of activity: Background App Refresh Tasks.

How do I change haptic feedback on Apple Watch?

Adjust haptic intensity You can adjust the strength of the haptics—or wrist taps—Apple Watch uses for notifications and alerts. Open the Settings app on your Apple Watch. Tap Sounds & Haptics, then turn on Haptic Alerts. Choose Default or Prominent.

How do I turn on haptic touch on Apple Watch?

Open the Watch app. Swipe down and tap Sounds & Haptics. Tap Prominent under HAPTICS (make sure Haptic Alerts are toggled on)


1 Answers

You can only run custom code when you app is active. So I´m afraid you can't do this.

like image 96
Philip Avatar answered Oct 02 '22 06:10

Philip