ilpesce Member Licensed User Longtime User Jul 10, 2016 #1 hello to everyone you can implement in B4A this request to the user? REQUEST_IGNORE_BATTERY_OPTIMIZATIONS thanks in advance
hello to everyone you can implement in B4A this request to the user? REQUEST_IGNORE_BATTERY_OPTIMIZATIONS thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2016 #2 Based on the answer here: http://stackoverflow.com/questions/...n-request-ignore-battery-optimizations-intent Google can suspend your app if you use this feature without a "good" reason. Why do you need it? Upvote 0
Based on the answer here: http://stackoverflow.com/questions/...n-request-ignore-battery-optimizations-intent Google can suspend your app if you use this feature without a "good" reason. Why do you need it?
ilpesce Member Licensed User Longtime User Jul 10, 2016 #3 Only to have the alerts even with the screen off Thank andornot for the tip, and erel for the important information. This is a quagmire in which I will not go will be the users to exclude my application from optimization I realized that there are much larger interests which the battery life ... Upvote 0
Only to have the alerts even with the screen off Thank andornot for the tip, and erel for the important information. This is a quagmire in which I will not go will be the users to exclude my application from optimization I realized that there are much larger interests which the battery life ...
Erel B4X founder Staff member Licensed User Longtime User Jul 11, 2016 #4 ilpesce said: Only to have the alerts even with the screen off Click to expand... You don't need it for this. How are the alerts triggered? Is the accuracy important? Upvote 0
ilpesce said: Only to have the alerts even with the screen off Click to expand... You don't need it for this. How are the alerts triggered? Is the accuracy important?
ilpesce Member Licensed User Longtime User Jul 13, 2016 #5 Hello Erel For years I used "StartServiceAt / StartServiceAtExact" to wake up the device every minute and update the status of the app. and check if they were set alarms or reminders for that time, then I brought back to sleep the device, all this very little affected the battery life. With the latest Android versions are forced to use "StartServiceAtExactWhileIdle", I hope will you implement as soon as possible in B4A ... which still to run on all devices you need the application to be excluded from battery optimization (not counting the various alerts that are sent to the user by the operating system ...). as you solve? greetings to all Upvote 0
Hello Erel For years I used "StartServiceAt / StartServiceAtExact" to wake up the device every minute and update the status of the app. and check if they were set alarms or reminders for that time, then I brought back to sleep the device, all this very little affected the battery life. With the latest Android versions are forced to use "StartServiceAtExactWhileIdle", I hope will you implement as soon as possible in B4A ... which still to run on all devices you need the application to be excluded from battery optimization (not counting the various alerts that are sent to the user by the operating system ...). as you solve? greetings to all
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2016 #6 It is already implemented: https://www.b4x.com/android/forum/t...estartatexact-not-accurate.65117/#post-412286 Though this is not the correct solution if you want to wake up the device every minute. You should use a foreground service with a partial lock instead. Upvote 0
It is already implemented: https://www.b4x.com/android/forum/t...estartatexact-not-accurate.65117/#post-412286 Though this is not the correct solution if you want to wake up the device every minute. You should use a foreground service with a partial lock instead.