2
Vote

App doesn't support suspend

description

And that causes application validation fail.

Consider adding this in ordre to fix it just before the app start in default.js

app.addEventListener("suspending", function (eventObject) {
    var host = document.getElementById("contentHost");
    host.winControl && host.winControl.suspending && host.winControl.suspending(eventObject);

}, true);

comments

fharper wrote Dec 22, 2012 at 6:02 AM

Since there is nothing to manage with this application before the app suspend, I don't see it would be a problem. Do you have any step by step procedure to reproduce any problem you got with the state management of the app? It should not be a problem for certification, and I got a couple of apps in the Windows 8 Store with the actual template.

baywet wrote Dec 22, 2012 at 4:30 PM

I just launched the app certification kit and then got the application not valid.
The report was saying the application did not handle suspending.
So I just added this and it worked

fharper wrote Dec 22, 2012 at 8:04 PM

Do you have the latest version of the WACK tool, version 2.2 http://msdn.microsoft.com/en-US/windows/apps/jj572486 ? We are now around 10 apps, and got no problem. Sorry about my questions, but I just want to be sure we won't add any code that we don't need.

baywet wrote Jan 1, 2013 at 10:02 PM

Yes using version 2.2. Maybe caused by my old and not powerful laptop?
Anyway if no other user has this issue I think we can close this case an maybe re-open it if somebody complains something similar

wrote Feb 14, 2013 at 7:04 PM