+ 17

'Vibrate' method error

Hi guys! The codes that use vibration throw: "Uncaught TypeError: Object #<Navigator>  has no method 'vibrate' Line 19" So I developed a code that helps me check: 1) If my browser supports vibration. 2) Test buttons with vibration method. If I run it on this app it says: (1) this browser doesn't support vibration and (2) the test buttons throw the error message. But if I run it on Chrome it works fine. Is there a way to make it work on the webview? Thanks 😊 https://code.sololearn.com/Wwlu7YrHh0NS/?ref=app

28th Jul 2017, 1:38 AM
Pao
Pao - avatar
7 Respostas
+ 8
😐 i dont know.. but it works on my phone with no errors in the app
28th Jul 2017, 1:54 AM
jay
jay - avatar
+ 7
@jay, @Very_Hard and @Lord_Krishna: Thank you guys for your valuable feedback and testing 😊👌
28th Jul 2017, 5:42 AM
Pao
Pao - avatar
15th Sep 2017, 5:52 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
In this webview work fine And also unprefixed
28th Jul 2017, 2:58 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 4
the vibration works in app using the newest web view 59. this works in Firefox. tried this in Firefox focus (uses web view for rendering) says vibration is supported but did not vibrate nor shows any error
28th Jul 2017, 3:57 AM
Lord Krishna
Lord Krishna - avatar
+ 4
Thanks for saying something + developing a cover case to link. One of my devices has no vibration module at all... and never throws an error. I don't bother checking for exactly that reason...and (having never been told) it means I've suggested it to people without noting they should check. This is a nice solution to that.
19th Aug 2017, 2:06 PM
Kirk Schafer
Kirk Schafer - avatar
7th Dec 2017, 2:42 PM
ℬℯℳℬℐ
ℬℯℳℬℐ - avatar