Hi everyone,
I used cordova and Hype to make app.
I used this code to show an alert when app launch, it worked but I got an another issue.
Click Home button(on device or simulator) and re-open app, this code did not run, no alert show.
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" charset="utf-8">
document.addEventListener("deviceready", onDeviceReady, true);
function onDeviceReady() {
alert ('123');
}
</script>
<!-- end copy -->
This code runs only one time ( first time ) when launch app.
How to call alert (‘123’) every time launch app.
Thank you so much.