Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Don't think this has been asked already but how do I make my app restart on every launch?
At the moment if I return to the app after exiting it continues from where it left off rather than restarting.

This is after creating an iPad app with PhoneGapBuild.

in how_to by (200 points)

1 Answer

0 votes
Best answer

Based on the PhoneGap events documentation, you can probably reload the app when the resume event is fired.

Attach the following as a .js file in the Resources section of the in5 dialog:

document.addEventListener("resume", onResume, false);
function onResume() {
    setTimeout(function() {
        }, 0);

It may be worth testing the pause event as well.

by (197k points)
selected by