locked
Application Suspend was not detected for application RRS feed

  • Question

  • Hi,

    I'm using Certification Kit to check my app. Unfortunalty it fails with a message: 

    'Application Suspend was not detected for application'

    I really don't undearstand why this message is displayed. When I read about it, it says the suspending is taking too much time. Actually I have no suspending mechanism in my application, beacause I don't want to save any state when the application suspends. So what is the reason of this? Could sb please help me?

    • Moved by Roberts_E Thursday, August 22, 2013 7:31 PM contingent staff
    Wednesday, August 7, 2013 8:19 AM

All replies

  • Application Suspend was not detected Make sure that your app suspends correctly. To check for Suspend, go to Task manager > View > Status values > Show suspended status. Launch your app and then switch to the desktop. If the app status changes to Suspended in Task Manger then the app suspended. If the app dies after few seconds, then your app fails to suspend correctly.

    Also make sure that you run the app in the 'Release' mode.


    Pradeep AJ

    MyApp   MyBlog   MySamples


    • Edited by Pradeep AJ Friday, August 9, 2013 5:38 AM
    • Proposed as answer by Pradeep AJ Friday, August 9, 2013 5:38 AM
    • Unproposed as answer by Roberts_E Monday, August 12, 2013 2:39 PM
    Friday, August 9, 2013 5:38 AM
  • Do you've the SuspensionManager.cs included in your project? If you've created your project with the built in templates like Grid or Split, then it might be there. Please try to debug the suspend resume actions and see if any unhandled exceptions thrown. Reference to test Suspend and Resume actions: http://msdn.microsoft.com/library/windows/apps/hh974425(v=vs.110).aspx

    - Ram
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, August 9, 2013 8:40 AM
  • you can force to suspend the app when the debugger is attached, in the visual studio toolbar go to view, toolbars and then open the debug location toolbar.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Friday, August 9, 2013 8:49 AM
  • Hi Jonatan,

    did check the app.xaml.cs.

     private async void OnSuspending(object sender, SuspendingEventArgs e)
            {
                var deferral = e.SuspendingOperation.GetDeferral();
     await SuspensionManager.SaveAsync();
                deferral.Complete();
            }
    If the by default created deferral does not signal complete, it could explain the issue you are facing

    lh

    • Marked as answer by Roberts_E Monday, August 12, 2013 2:39 PM
    • Unmarked as answer by Jonatan Dragon Friday, August 16, 2013 12:35 PM
    Friday, August 9, 2013 10:04 AM
  • Thank you for all your answers, especially for yours Lars.

    Actually I'm using JS so I have added the following code to my default.js:
    Windows.UI.WebUI.WebUIApplication.onsuspending = function(args) {
        var suspendingOperation = args.suspendingOperation;
        var deferral = suspendingOperation.getDeferral();
        deferral.complete();
    };
    Unfortunatly, it still can't pass the certfication. I get the same error: 'Application Suspend was not detected for application'. Can anyone give me any other suggestions what shall I do?
    Friday, August 16, 2013 12:35 PM