Haptic/audio feedback API
Reported by
nekr.fab...@gmail.com,
Dec 30 2016
|
||||||||||
Issue descriptionSteps to reproduce the problem: 1. Open typical native 2. Tap on something clickable 3. Audio or haptic feedback happens (depending on phone settings, enabled sounds, etc) 4. Open PWA added to Home Screen by Chrome 5. Tap something clickable in the app 6. No feedback What is the expected behavior? PWA should probably behave as native apps here and have haptic/audio feedback on taps. This probably makes sense only for WebAPK. What went wrong? Web pages in browsers do not have haptic/audio feedback right (it used to have in older version of Android browser?) and PWAs inherited this behavior. Did this work before? N/A Does this work in other browsers? N/A Chrome version: Channel: n/a OS Version: Flash Version: Cordova developers use "feedback plugin" for that and call it manually on click in their apps. Existence of such plugins proves and it's at least usable for developers and probably is also usable for their users.
,
Jan 4 2017
,
Jan 4 2017
Not sure how to triage this one. Paging webapp Super Friends.
,
Jan 4 2017
+cc owencm, slightlyoff
,
Feb 9 2018
,
Feb 16 2018
Seems like an ambitious feature request. Assigning to Owen for a clear concise decision
,
Feb 16 2018
I'll own this feature request. I've talked with a few folk about a haptic or audio feedback API in the past, I have it on a conceptual long term backlog (although of course we may never get to it, or decide against for some reason). No other action required from folk here. If anyone wants to see this happen particularly, feel free to star this so I can get a general sense. (also I don't think this would be WebAPK specific, so removing webapk labels and -cc webapk folk)
,
Feb 16 2018
cc ojan who I've discussed this with in the past. Relevant from autoplay audio policy etc.
,
Feb 17 2018
,
Feb 19 2018
Audio feedback on click should be compatible with the autoplay policy and one could use Web Audio for this. Couldn't haptic feedback be done with the Vibration API? I mean, is this different from a small vibration or is this a different motor that would require its own API or an extension to the Vibration API?
,
Feb 19 2018
Audio element/web audio plays through "speakers", aka Sound. Tap audio feedback plays through Phone audio. That's different audio settings on a phone. Also while audio feedback might be enabled, haptic feedback may be disabled (and vice versa, or both disabled) in the settings and web app wouldn't know about it.
,
Feb 19 2018
Thanks for the background. I guess I would need to do more research on this. Though, with regards to the question asked in comment #8, there is no problem with the autoplay policy as it would happen on a user gesture.
,
May 8 2018
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by lukyanov...@gmail.com
, Dec 30 2016