0
I am developing a chat in Html5, for my company, and I am using the library Navigator.Ibrate to activate the cellular vibration mode. Everything works when I’m focused on the tab of the browser with the application. The problem I have is when the phone is in Sleep(turn off) mode the vibration does not work. I have a way to enable this by javascript?
Thank you very much!
Lenin De Maria
I think this is impossible, since the JS does not have full control over the browser, imagine about the hardware.
– Sam
Thanks for the quick return. So from what I understand, there’s no way to activate the vibration in the phone when it’s in Sleep mode by the js, right? Is there a Html5 library that releases vibration in Sleep mode? I know that for an app, security changes like this: <uses-permission android:name="android.permission.VIBRATE"/> Thanks Sam!
– Lenine