Hello all,
we have an app for business messages that must to be always active. To avoid maintaining the service in foreground, we use Firebase Cloud Messages to start it when a server event is generated, what sends a FCM to Android and then runs the message receiving routine.
I noticed that rarely we have some errors (natural from an asynchronous process receiving complex data from internet), those stop the app. In this situations, if the user doesn't restarts manually it stops to receive messages (FCM routine doesn't receive push events anymore).
Is there some way, without using a Foreground Service with icon, to garante that the app will continue to receive Firebase Cloud Messages and start, even after an error (like in old versions of android where it was possible to configure a service that where automatically restarted by system)?
I notice that, after an error, if the user doesn't restart the app, even ServiceStartAt doesn't work...