I'm creating local push notifications, which is working fine. If the user has more than three open push notifications, the device (Samsung tablet) is grouping them together. Now the issue begins. If the user taps on the group notification summary my app is opened like it was never started (but it is running in foreground at the moment).
The OnCreate()
method of MainActivity
is called, which in turn calls LoadApplication(new App());
and in App.xaml.cs
my first page is pushed on to the navigation stack.
If I expand the summary, I can click the separate push notifications and OnNewIntent()
is called like desired.
I tried to add LaunchMode = LaunchMode.SingleTop
to the MainActivity
, but it didn't change something. Then I tried to use ActivityFlags.SingleTop
, when creating the notification with the same result
How can I improve the behavior so that it doesn't push a new page onto the view?