Android Question Service

fishwolf

Well-Known Member
Licensed User
Longtime User
Hi,

i would create a service that each day check a condition and if true, check other condition each 10 minuts until is false

i'm using StartServiceAtExact and StartServiceAt.

the problem is that android show me the message that the app is a problem for battery (high consumption).

is it possible don't show that message without the request the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS?

exist a right method for this procedure?

Thanks
 

fishwolf

Well-Known Member
Licensed User
Longtime User
Best solution is to switch to push notifications. Android doesn't like apps that start in the background and the interval is way too short.
Thanks, but I should move the check condition on backend for all users.

Why the gps tracking example don't have this battery problem?
 
Upvote 0
Top