Haptic Feedback in Safari Web Extension

Hi!

We're currently building a web extension with iOS as a primary target. Since haptics on iOS are really nice, we wanted to make use of it to give the experience a special feel on iPhone.

However, haptics don't seem to work when called from SafariWebExtensionHandler... maybe because the messaging layer between the web extension and the native code is in the background (is it?), and haptics don't work in apps that are in the background.

Anyway, is there any way we can make haptics work regardless?

Replies

What are you trying to use haptics for?

If you could submit some feedback to https://feedbackassistant.apple.com and include a sample project/use case for this, that would be very helpful.

Thanks!

  • Thanks, I'll do that! We're building an overlay dictionary for Chinese, that uses a lot of gestures. There are a few cases where haptics would provide great feedback about changed selections.

    E.g. you might want to step through words in a sentence, but words can often be very hard to select, since they are a lot shorter than in western languages – often it's just one or two characters wide. One way to alleviate this is to give a preview while swiping from one word to the next, but being able to give that discrete feedback we get through haptics would just make it feel a lot nicer.

Add a Comment

Same question here! Why cannot access core haptics too within safari extension development? In our WIP extension we are creating like the iOS callout but with other information and with determinate links… also with Force Touch we’re still able to give feedback about the second layer.