Can a Cordova Windows Phone 8.1 App Resume without restarting my web app?

338 views Asked by At

After opening and using my Windows Phone 8.1 Cordova App, I press the Windows key to go to my tile screen and then click on my App icon to bring it back.

On Resuming the last screen is breifley shown before restarting the App from index.html

During this restart I get a Flash of Unstyled Content from JQuery mobile widgets (that is usually hidden by the splash screen) before the app loads and I'm routed to the appropriate landing page.

Does anyone know of a way to prevent this app restart from happening?

Ideally I want the user to simply see the last screen they were on without the restart OR if the app has been terminated then I'd like the app to restart in the usual way without showing the user the last used screen first - like it does on iOS and Android

I'm developing using VS 2015 Enterprise RC

Thanks

1

There are 1 answers

1
jarlem On

Add ActivationPolicy="Resume" to DefaultTask in VMAppManifest.xml

<DefaultTask Name="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume" />