F fishwolf Well-Known Member Licensed User Longtime User May 4, 2022 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User May 4, 2022 #2 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. Upvote 0
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.
F fishwolf Well-Known Member Licensed User Longtime User May 4, 2022 #3 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... Thanks, but I should move the check condition on backend for all users. Why the gps tracking example don't have this battery problem?
Erel B4X founder Staff member Licensed User Longtime User May 6, 2022 #4 I expect Android to show such message for the background location example as well. Though it works a bit differently, it tries to keep running in the background. Upvote 0
I expect Android to show such message for the background location example as well. Though it works a bit differently, it tries to keep running in the background.