Hi experts
I created a MDK Project in BAS to generate a mobile application to use on Android devices.
Inside this project, there is a Rule where I established through the js command "setInterval" to launch a “POST” oData call to a service (not offline service) for creating a record in backend with the geo-localization coordinates (GPS) every 30000 milliseconds.
This MDK Project is built as branded MDK Client (6.3.3) using Cloud Build Service.
Then I installed this Android app in my device scanning an on-boarding QR code.
For general information, the app installed on device accepts the metadata via App Update after user on-boarding.
In BrandedSettings.json file, the EnableOverrides property (under ConnectionSettings block) is "false".
The "setInterval" js command works well in foreground mode, but doesn't works well in background mode.
When the application goes in the background mode (for example because the smartphone screen goes black or I switch to another application or I press the “Home” of the smartphone), the application continues with its "POST” oData calls (as indicated inside js interval) for a few minutes (about 2 minutes) and then nothing happens anymore.
The “POST” oData calls restart only after I bring my application to the foreground mode (resume event).
I understand that this seems to be due to the smartphone's energy saving settings.
If I change this Battery Setting for my app in my Android device from "Optimizing battery usage" to "Without limitation usage", the application continues with its "POST” oData calls (as indicated inside js interval) for hours and this is a good thing :-)

My question is:
is it possible with a custom Cloud Build to make sure that these default smartphone energy saving settings for this app are disabled or setted in "Without limitation usage"? For example by acting on the " BrandedSettings.json" or " MDKProject.json" files? Or is there some plugins for change this battery setting when the application starts?
If yes, is there a similar solution for iOS also?