I
I
Igor Bezlepkin2018-11-09 11:01:59
phonegap
Igor Bezlepkin, 2018-11-09 11:01:59

Why doesn't vibration work in Cordova?

Hey! I installed everything as instructed.

document.addEventListener('deviceready', function() {
  navigator.vibrate(3000);
}, false);

Does not work :(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alams Stoyne, 2018-11-09
@alams_stoyne

If I understand correctly navigator.vibrate
In your case

document.addEventListener('deviceready', function() {
   window.navigator.vibrate(3000);
}, false);

I
Igor Bezlepkin, 2018-11-09
@Bezlepkin

Sorry! I turned off the vibration in my iPhone :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question