How to enable autostart feature on a mobile phone through android studio so I can push notifications without troubling user by requesting them to turn on their autostart feature for my app.
Basically, this autostart feature is customized in ROM by the mobile companies to enhance their phone battery performance and other features etc. and because of this, I can't push notification when the app is killed I can only push notification when the app is running or is in the background and this becomes burden for developer to notify people of some important event or news even when the app is killed.
If autostart is disabled then all the services of the app are being killed and if I explicitly enable it then the push notification feature is working properly without any problem even when the app is not running at all or stopped or killed.