Watch Kit: is it possible to vibrate watch programmatically? Watch Kit: is it possible to vibrate watch programmatically? objective-c objective-c

Watch Kit: is it possible to vibrate watch programmatically?


You can now ask the Watch to vibrate if you target watchOS 2.0

To do this all you need to do is call playHaptic on a WKInterfaceDevice instance with any WKHapticType. In the example below it will play the notification haptic.

Swift 3

WKInterfaceDevice.current().play(.notification)

Objective-C

[[WKInterfaceDevice currentDevice] playHaptic:WKHapticTypeNotification];

You can further read theApple WKInterfaceDevice Documentation


That's a great question, but unfortunately the answer is no. WatchKit doesn't have any APIs available to control haptic feedback. If you would really like to see this feature supported, I'd suggest you file a radar as a feature request.


This is the answer in objective-c after watchOS 2

[[WKInterfaceDevice currentDevice] playHaptic:WKHapticTypeNotification];