Disorder with confirm dialog
-
Hej,
I have somehting like this:navigator.vibrate([10,20,30,40]); booleanAnswer = confirm('Do you have an answer?');
Unfortunatly navigator.vibrate will start AFTER die confirm dialog. I want it the other way around, any idea how to first vibrate and than ask the question?
-
It might work using
setInterval
as described here:
https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API