I did the following: 1.launched my app 2.launched another app 3.tap on my app again (for instance taking it from the app list)
At step .3 I would expect to get a message callback, but I dont.
In the file App.xaml.cs, I added the method onResuming this
way:
public App()
{
//this.askToBeOnLockScreen();
this.createRegisterBgTask();
this.InitializeComponent();
this.Suspending += OnSuspending;
this.Resuming += OnResuming;
}
here I override the 2 methods:
private void OnResuming(object sender, object e)
{
Debug.WriteLine("OnResuming ...................");
}
private void OnSuspending(object sender, SuspendingEventArgs e)
{
Debug.WriteLine("onsuspending ......................................................");
var deferral = e.SuspendingOperation.GetDeferral();
deferral.Complete();
}
not even the onsuspending is called.
What am I doing wrong?
I am new to Windows store app