I am using Plugin.FirebasePushNotification to recieve push notifications in my xamarin cross platform application.
In android which i started to test first....
If if recieve a notification and app in foreground --> on tapping the notification the app's previous state of the app is retained and you see the last opened tabpage.
But if the app is in background and I click on the notification .... the onstart method is executed and app restarts to the login screen and the previous state of the app is lost.
The app works fine and fires onresume if it is in background and if we click on icon from home screen etc.
Why onresume is not fired and onstart is fired when my app is in background and I click on the notification to open.
I am new to xamarn so is this something very silly I am missing?
UPDATE: I just found that when mainlauncher=true is splashactivity then this happens.If mainlauncher=true for mainactivity then onnotificationopened is followed by onresume and app resumes previous state and does not start over from login.
what should I do ?