Answer the question
In order to leave comments, you need to log in
How to execute navigator.vibrate when app is in background?
There is a simple web application in Tizen, which is supposed to vibrate periodically.
var t = Date.now();
var textSpan = getSpan();
setInterval(function() {
const now = Date.now();
textSpan.innerText = now;
if (now- t > 5e3) {
t = now;
navigator.vibrate([150]);
}
}, 500);
<tizen:settings background-support="enable" background-vibration="enable"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question