I'm migrating a mobile app ver.5.1.3 in ver 20.2. I have to add vibration when I load a page but all ways I use to do that don't work.
The same application ver 5.1.3 on phone works fine. I can vibration the page. I've tried the same solution on apex 20.2 but It doesn't work.
I found out this code to test Vibration API
if (window.navigator && window.navigator.vibrate) {
// Shake that device!
} else {
// Not supported
}
I put it in Execute when the page loads with alert code. It works fine. The page shows an alert with a succefull message. Instead of the alert message, I've tried this solution navigator.vibrate(10000); but It's carrying on to not work.
Please, can anyone help me?