Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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