locked
Why my metro app always terminated by system instead of suspend when switched to other app?

    Question

  • I create a new JS metro app and found when I start this app then switch to other app, then after a few seconds ,this app will be terminated...

    what's wrong with my app? Is it supposed to be suspned insteand of terminated??

    Tuesday, February 07, 2012 7:19 AM

Answers

  • Hi all ,this problem has been fixed when I add the code WinJS.Application.start() -- which used to start the event dispatching.
    • Marked as answer by susie.zeng Tuesday, February 07, 2012 10:12 AM
    Tuesday, February 07, 2012 9:52 AM

All replies

  • Hi all ,this problem has been fixed when I add the code WinJS.Application.start() -- which used to start the event dispatching.
    • Marked as answer by susie.zeng Tuesday, February 07, 2012 10:12 AM
    Tuesday, February 07, 2012 9:52 AM
  • Hi,

    Also refer to this link which is having similar issue

    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/83e011ef-660e-4538-8d3c-c5a2309b2f4e/windows-metro-app-crashing-when-switched-to-other-apps?forum=winappswithcsharp#3b0885f8-aa03-45c2-9926-b40e7324677d 

    Tuesday, January 06, 2015 12:24 PM