Closed toonvanstrijp closed 3 years ago
Nice idea I will add this option in the next update
I have more idea's, will create a issue for it ;)
I have more idea's, will create a issue for it ;)
shoot them at me ;)
I published new update with this option
you can new set isStartOnBoot
@SayWut just to confirm. Does this also start the "task" automatically at boot?
@SayWut just to confirm. Does this also start the "task" automatically at boot?
yes if you see any bug open a new issue :)
@SayWut how does it handle when the phone is in "doze" mode? (Haven't tested it yet tho)
But maybe we need an option for this:
@SayWut how does it handle when the phone is in "doze" mode? (Haven't tested it yet tho)
But maybe we need an option for this:
Here comes the receiver that I created. If the OS kills the service the service will auto restart itself
you can see the onDestroy
function in the service which handles this problem
@SayWut I'm testing it right now. What I notice is that when I'm using the perodic task with a duration of 15 minutes. It doesn't always run evry 15 minutes. Especially when the phone is locked. I thought maybe we can solve this by using the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
?
@SayWut I'm testing it right now. What I notice is that when I'm using the perodic task with a duration of 15 minutes. It doesn't always run evry 15 minutes. Especially when the phone is locked. I thought maybe we can solve this by using the
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
?
I don't see this request should be in my plugin because it opens a dialog which request from the user to remove the current app from the battery optimize manually
I will test it and I will check if there is somthing that I can do with this 15 minutes duration
@SayWut I'm testing it right now. What I notice is that when I'm using the perodic task with a duration of 15 minutes. It doesn't always run evry 15 minutes. Especially when the phone is locked. I thought maybe we can solve this by using the
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
?
I think I found a bug
open a new issue about this and post there your periodicTaskFun
Is it possible to start the foreground service when the devices boots?