Asked by:
Certification issue: call close() when background task finishes

Question
-
I'm getting this certification issue:
Note that JavaScript background tasks must call close() to terminate when they are done, so they don't continue to consume the user's memory and battery.
Problem is that i'm not using any background tasks in my javascript code (all background operations are managed by C++ components). Is there any chance to get details what's the problem actually ?
Monday, December 9, 2013 12:38 PM
All replies
-
Hi Petr,
What specifically is the error you are getting and can you tell us more about relevant parts of your app architecture?
--Rob
Tuesday, December 10, 2013 2:22 AMModerator -
Rob, this is the error i getting :
"Note that JavaScript background tasks must call close() to terminate when they are done, so they don't continue to consume the user's memory and battery."
That's it. No more informations.
My app have UI in HTML/JS and all background operations are in C++ components, so there's no background tasks in JS (that's why i don't understand this certification issue).
Tuesday, December 10, 2013 6:33 PM -
Hi Petr,
You should have more in your error report than just that one line.
--Rob
Thursday, December 12, 2013 1:30 AMModerator -
Rob,
where i can find that error report ? In Validation.html (opened right after certification ends) is _only_ message i sent here ... no more details.
Thursday, December 12, 2013 1:25 PM -
Hi Petr,
I had misunderstood this to be an error from a certification rejection not from a local run of the App Cert Kit. I was looking for more information to identify the specific test that was failing. That should be explained in your Validation.html.
I'm pretty sure you're failing the WinJS Background Task test. See http://msdn.microsoft.com/en-us/library/windows/apps/jj657973.aspx#resource_usage_test for information on what this test is and what it checks.
You should pass if you don't have a JS Background Task set in your manifest. I just confirmed that a JS sample with a C# background task passes (C++ vs. C# shouldn't be relevant). How do you have your background task defined in the manifest?
Can you reproduce this in a minimal sample that you can share?
--Rob
Saturday, December 14, 2013 1:24 AMModerator -
Rob,
i have enabled Audio and Control channel in manifest.
'Audio' background task because of background playback even when app is not active.
'Control channel' background task because of network operations in C++ library (not used in JS ... C++ only).Petr
Saturday, December 14, 2013 10:03 PM