In my UWP and Windows Phone 8.1 projects only OnStart is called. When I exit the app via the back button or home button, OnSleep is not called. If I open the app OnResume is not called.
It looks like the app never goes in the Deactivated state.
I tried it with Android and it is working fine. Why are these methods not called in both Windows projects?