Since we don’t yet have a specific community for custom phone ROMs, let’s discuss them here. Are you running a custom ROM? Which one? On what hardware? How is it?
Since we don’t yet have a specific community for custom phone ROMs, let’s discuss them here. Are you running a custom ROM? Which one? On what hardware? How is it?
If the app uses Google FCM (which uses Google Play Services to poll notifications on device) it should register an FCM service that runs separately from the application, so it shouldn’t need to run in the background.
However to answer your original question, you can disable battery optimization for particular apps. Or if an app wants to really never be killed, it can create an Android foreground service.