I am building cordova application using ember.
And on app resume event, I want to redirect user to path '/#/location' where i check user's location and updates latitude longitude.
Code is -
document.addEventListener("resume", onResume, false);
function onResume () {
setTimeout(function () {
window.location.href = '/#/location';
}, 100)
}
But its not redirecting to '/#/location'.
Can somebody suggest something about this? What i am doing wrong or how can i acheive this?
Aucun commentaire:
Enregistrer un commentaire