My app receives push notifications sent using php code on the server.
It happens sometimes, that main activity is taken to Foreground when FCM message arrives.
Activity Main is previously open from starter service using:
StarActivity(Main) from Service_Start,
and then closed using Activity.Finish somewhere in Main Activity code.
My fm_MessageArrived Sub is exactly as in Erels Firebase Messaging tutorial.
I do not want activity to start when push arrives. Any idea what am I doing wrong?
Is it because Starter Service is killed and recreated by OS when message arrives, and then Service_Start is called again?
It happens sometimes, that main activity is taken to Foreground when FCM message arrives.
Activity Main is previously open from starter service using:
StarActivity(Main) from Service_Start,
and then closed using Activity.Finish somewhere in Main Activity code.
My fm_MessageArrived Sub is exactly as in Erels Firebase Messaging tutorial.
I do not want activity to start when push arrives. Any idea what am I doing wrong?
Is it because Starter Service is killed and recreated by OS when message arrives, and then Service_Start is called again?