I am faced with a difficult problem.
The test device that i need to execute the objective on:
Device: Micromax Bharat 5 Plus (2018 model)
Android Version: 7.0
I have an Android app which critically relies on push notifications. The device I'm using however, has a default System setting which causes the Apps that are swiped off the Overview Tab to be completely Force Stopped. This device has a 2GB RAM capacity, which makes this setting understandable. However, this makes any kind of App service/task/notification unexecutable.
To try and change this setting I have tried several different things:
But a Force Stop stops all App processes. There's no possibility from within the App code. Thus i rooted the device and tried the following root options:
Again this still doesnt circumvent the problem of swiping off causing Force Stop.
Things that might work but havent found a way:
This is an extremely frustrating problem that i haven't found a solution to. There are multiple devices of this exact model that need to be distributed and rely on notifications. A solution to this would really be sincerely appreciated.
Hey i also have same device to test and build my app for chinesse manufacturers.
I found a solution (copied from skype).
Just add this line in your (manifest) launcher activity.
android:excludeFromRecents="true"
Basically this will remove your app from recent menu and almost all this type of device force stop your app when you remove it from recent menu.
Also in stock android there is nothing like that so you should not do this on that device or just add an option which explains your user what is going on.