I have a question in preparation for a potential iWatch app. Having no prior experience writing iOS apps, the API feels pretty daunting and difficult to navigate.
A central part of this project includes sending bursts of vibrations to an iWatch - is this at all possible or am I restricted to standard 'notification' vibrations? And if so, is it known at which rate one may send notifications with vibrations?
I found a possible related topic here on StackO: Are there APIs for custom vibrations in iOS? Is this approach applicable for iWatch apps?
Thank you in advance.
Currently, there is no API for custom haptic feedback. But as of watchOS 2.0 you can invoke haptic feedback by supplying a WKHapticType
option.
WKInterfaceDevice.current().play(.success)
Here are the WKHapticType
options:
enum WKHapticType : Int {
case Notification
case DirectionUp
case DirectionDown
case Success
case Failure
case Retry
case Start
case Stop
case Click
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With