Kumaraswamy B G
Kumaraswamy B G
The same for me, the foreground service for my looping music player is killed after some time when the phone goes off.
You can add that. 🙂
https://github.com/urbandroid-team/dont-kill-my-app/pulls I have created a PR fixing some things. When an exception is raised or something, it's good to return like Unknown state rather than "Disabled" which may create confusion.
I have created a PR again this time linking to GitHub library that can check the autostart state on devices including MIUI 12.
This update modifies the constructors, to effectively pass configuration through constructors, rather than methods. So anyone after updating to this code, will have to do a small refactor.
> Is this still the case? If so, can't you provide a default constructor for backwards compatibility? Hi yes, it is still the case, yes I can provide backwards compatibility,...
> Perhaps, but it is what it is; this is how the library works right now. I'll let the users decide how to use it, but I don't want to...
I'll edit the code for backwards compatibility, also resolve the conflict.
@bbottema can you please review? Can you also update the change history and the version?
Hi buddy, please test the library in a real phone to get realistic results, testing in an emulator may differ. You can donate me via Paypal: paypal.me/XomaDev