Answer the question
In order to leave comments, you need to log in
Why doesn't vibration work in Cordova?
Hey! I installed everything as instructed.
document.addEventListener('deviceready', function() {
navigator.vibrate(3000);
}, false);
Answer the question
In order to leave comments, you need to log in
If I understand correctly navigator.vibrate
In your case
document.addEventListener('deviceready', function() {
window.navigator.vibrate(3000);
}, false);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question