This handler will call postDelay () every half minute and call the function
This will not work reliably on Android 6.0+, thanks to Doz mode and application standby time. In particular, working anywhere will almost always be bad for the battery, and therefore Google will be very busy to prevent this behavior.
What is the best way to use this code for android O +?
, . JobScheduler (, 15 ).
, Android 8.0+ , Android 6.0+ (.. - , , , ).
Foreground , , .
, .