botoman Posted July 4, 2018 Share Posted July 4, 2018 Hello, I'm new to Panda 2 and mobile web development in general. It's possibile to make the device vibrate in Panda 2? How can I do this? Thank you, Alex Quote Link to comment Share on other sites More sharing options...
enpu Posted July 4, 2018 Share Posted July 4, 2018 Hi @botoman welcome to Panda 2 forum! Have you tried using navigator.vibrate function? navigator.vibrate(200); // Vibrate for 200 milliseconds Quote Link to comment Share on other sites More sharing options...
botoman Posted July 5, 2018 Author Share Posted July 5, 2018 Thank you very much @enpu, it works like a charm Where can I find the navigator class documentation? Cheers, Alex Quote Link to comment Share on other sites More sharing options...
enpu Posted July 5, 2018 Share Posted July 5, 2018 navigator is native JavaScript object. You can find it's documentation here: https://developer.mozilla.org/en-US/docs/Web/API/Navigator Quote Link to comment Share on other sites More sharing options...
botoman Posted July 5, 2018 Author Share Posted July 5, 2018 Thank you! Now is all clear Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.