locked
What will happen if a Metro App is brought to background? RRS feed

  • Question

  • Hello, everyone, for the topic there has been a some webpages like http://msdn.microsoft.com/library/windows/apps/Hh464925.

    I know that at least the following two things are well-known:

    1. the app would go into the suspended state (but not necessarily in this state) and might be terminated by Windows if resource is not enough (such as low memory/power);

    2. the network will be stopped if we don't use any background technique (We could use ControlChannelTrigger to receive real-time notifications).

    Do you know what other else that might (potentially) happen? Thanks.

    Friday, March 15, 2013 8:07 AM

Answers

  • There is no list that defines when exactly an app will be terminated. All the app needs to care about is to handle the app activation and suspend states rather than worrying about the criteria used to terminate apps.

    Thanks,

    Prashant.

    • Marked as answer by B0L Thursday, March 21, 2013 1:57 AM
    Monday, March 18, 2013 9:30 PM
    Moderator

All replies

  • That documentation pretty much covers what will happen when the app gets suspended. When your app gets suspended, it gets notified, where you should make sure to save your application data to avoid losing 'state'.

    You can take a look at this link that talks about the guidelines for app suspend and resume: http://msdn.microsoft.com/en-us/library/windows/apps/hh465088.aspx

    Thanks,

    Prashant.

    Friday, March 15, 2013 10:29 PM
    Moderator
  • Hello, Prashant,

    Thank you very much for your reply. Yes, this webpage is very good and I've visited this webpage before. Currently what I am not sure is that some concrete points are still known to me. For example, if Windows RT runs under the low power state, it will kill some Apps that are in suspended. But how to define the "low power" state? 15% battery? For the "low memory" state, it is also very unclear. Other conditions, such as the active connection keep-alive time duration...Is there a list about how these conditions are well-defined? Thanks!

    Monday, March 18, 2013 8:34 AM
  • There is no list that defines when exactly an app will be terminated. All the app needs to care about is to handle the app activation and suspend states rather than worrying about the criteria used to terminate apps.

    Thanks,

    Prashant.

    • Marked as answer by B0L Thursday, March 21, 2013 1:57 AM
    Monday, March 18, 2013 9:30 PM
    Moderator
  • Yes, I agree. I think we should make preparations for the activation and suspend states as it is Windows OS instead of the apps that well knows the system state.
    Thursday, March 21, 2013 1:57 AM