Hello,
I've an application that receives push notifications (firebase messaging).
I have seen a strange interaction between the starter service and the push notifications:
- switch off the phone
- send a few messages to the phone
- switch the phone back on
- Android boots and after a while makes a connection to the network
- the phone now receives the message that was sended while the phone was switched off
- the incoming firebase message triggers a start of the application
- this causes the service Starter to be created and started first
- and then the service handling the incoming firebase message is created and started
However, with this procedure, one message is lost.
Removing the service Starter from the application solves the problem and all messages are received.
set #StartAtBoot: True for another service also solves the problem.
Then it seems to be that:
- the phone is switched on
- Android boots
- when booting is completed, the service with #StartAtBoot: True wants to start
- this causes the service Starter to be created and started first
- the service with #StartAtBoot: True is created and started
- and after that, the service handling the incoming push messages is created and started
My conclusion, but I might be completely wrong, when it is an incoming message that triggers the start of the application, one has an interaction with service Starter.
I hope this somewhere rings a bell...