AarogyaSetu_Android icon indicating copy to clipboard operation
AarogyaSetu_Android copied to clipboard

Handling device reboot in realme device

Open ranjeetscience opened this issue 4 years ago • 3 comments

I have realme 5 prod device. Whenever I restart the device, the notification to handle the foreground service for the app is no longer there until I open the app again even though I am seeing the there is code to handle to the device reboot(BootReceiver.kt).

ranjeetscience avatar Jun 05 '20 01:06 ranjeetscience

Hi,

you can try with auto-start option in app settings if you enable that then the notification will work properly.

puneetkumar1011 avatar Aug 20 '20 16:08 puneetkumar1011

@puneetkumar1011 I am not asking this as a user point of view but as a developer point of view. How can we do this programmatically for all types of devices available in the market?

ranjeetscience avatar Aug 20 '20 22:08 ranjeetscience

Hi Ranjeet,

Ok, have you tried with this library:-

https://github.com/judemanutd/AutoStarter

This option is mostly available in Chinese manufactured devices or MIUI devices.

puneetkumar1011 avatar Aug 21 '20 03:08 puneetkumar1011