I have an application where I have to run a piece of code when the application comes from the background to the foreground.
I can do it in three places(App.xaml.cs)
OnLaunched
OnActivated
OnResuming
I had a breakpoint in all three places, but I am not seeing it get hit in OnActivated and OnResuming.
Basically, if I long press on back button it'll bring me all the opened applications I can choose one to bring it to forward.
But I am not getting the breakpoint hit.