Applications do not restart when they crash. You should see a message saying that the application has crashed.
Have you customized Application_Error in the starter service?
I am calling it an application crash because of its behavior, but it is not a true application crash. Here is a bit more info.
Below is the application flow:
Starter Service (Firebase messaging service is started in here)
Open Splash Screen Activity
Open login Screen Activity
User logs in
Open Main Menu Activity
Open apickupanddropoff (This activity calls the sub causing the issue)
This is what I see in the log
** Service (pushservice) Start **
** Activity (apickupanddropoff) Pause, UserClosed = false **
Killing previous instance (asplash).
** Activity (asplash) Create, isFirst = false **
Now the application looks like as if it is restarting.
If I remove the line below, everything works fine.
fm.UnsubscribeFromTopic(lstTopics.Get(i)
Note that I am not facing the issue with earlier Android versions
Thanks in advance