i have tried your code android 8.0 (Vivo device) but it will not work more than 10 mins, it will stops automatically, any solution for this ?
as your command in stack overflow you said in this question (I have tested it up to 9.0 and its working fine, i even let the service run in background whole night and it doesnt stop, as long as the app is not killed and its in the background, Make sure to Recall the service after it expire( for example inside your receive method set the timer again if u want it to run multi times) ) in this comment you said it will be work in whole night but in my case i can't even take more than 10 mins
But i have tired 8.0 devices it wont work if you got any solution share and help to solve this issue.
Thanks!
![2018-11-21](https://user-images.githubusercontent.com/6889844/48844263-50817d00-edbf-11e8-9784-41828732a623.png)