Vibration API should work when Media is playing, even if Ringer on silent
Reported by
therealb...@gmail.com,
Apr 4 2018
|
||||
Issue descriptionSteps to reproduce the problem: 1. On an Android phone, close all media apps so adjusting the volume changes ringer volume, not media volume. 2. Set ringer volume to active or vibrate. 3. Open test page... clicking the button vibrates the phone. 4. Set ringer volume to silent... clicking the button does nothing. What is the expected behavior? The phone would still vibrate, or at least prompt me to allow vibration. What went wrong? It seems either Chrome or Android is restricting *any* vibration when the phone is in silent ringer mode. It's not clear how much sense this makes... particularly in the context of an app like a game which has music playing and uses vibration for sound effects (the most obvious application of the vibration API if you ask me!). Interpreting the vibration as a ringer notification seems incorrect. In fact I would venture to guess that the areas where a vibration notification coming from a browser would be deemed *acceptable* by an end user are currently very limited... As a developer who keeps their ringer on silent sometimes, I was *very* confused why my game which was otherwise working had suddenly stopped emitting vibrations - there's no obvious indication that the vibrations are being swallowed silently (navigator.vibrate(100) still returns true). Anyway, one solution, if enabling vibration on silent mode is a concern, would be to display a Firefox-style vibration permission prompt to the user (while on silent ringer mode), and defer the first vibration until the user has granted permission. Did this work before? N/A Does this work in other browsers? No The issue exists exactly as described in Edge on Android. Firefox on Android does not have this problem, as it displays a prompt allowing the user to opt-in to vibration (Firefox does this regardless of the ringer volume). Chrome version: 65.0.3325.109 Channel: stable OS Version: 8.1.0 Flash Version:
,
Apr 5 2018
I should maybe clarify my earlier comment, when I wrote "uses vibration for sound effects," I meant in conjunction with sound effects and visual effects, not as sound effects. Poorly worded!
,
Apr 5 2018
Tested the issue using #65.0.3325.109 on pixel XL; 8.1.0 and could not reproduce the issue as per the steps mentioned below. Steps: 1. Closed all media apps 2. Set ringer volume to active and vibrate as well 3. Opened the attached html 4. Set ringer volume to silent 5. Clicked on Click me to vibrate 6. Phone is vibrating @therealbenwiley: Could you please provide details of your device and if possible attach a screencast as well for further triaging? Thanks!!
,
Apr 6 2018
Odd! Sure, it's a Pixel 1 (not the XL). I'll see if I can get a video soon...
,
Apr 6 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 9 2018
Tested the issue in Android and able to reproduce the issue as per the steps mentioned in comment #3. Vibration is not working. Chrome versions tested: 65.0.3325.109(Stable), 67.0.3390.0(Canary) OS: Android 8.1.0, 7.1.2 Android Devices: Pixel Note: 1. This is a Non-Regression issue as same behavior is seen since M55 2. Issue seems to be specific to Pixel onyl Please navigate to below link for log's and video-- go/chrome-androidlogs/828914 Thanks!!
,
Apr 9 2018
Ok awesome - I'm not crazy! :) |
||||
►
Sign in to add a comment |
||||
Comment 1 by pnangunoori@chromium.org
, Apr 5 2018