-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function to configure battery optimizations on iOS? #35
Comments
Reading https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/using_background_tasks_to_update_your_app, it does seem like "Background App Refresh" is equivalent-ish to the battery optimizations on Android. https://uynguyen.github.io/2020/09/26/Best-practice-iOS-background-processing-Background-App-Refresh-Task/ has a few more technical details. |
Doesn't seem to be stored in an SQLite database. NEEDLE="background|bart|bgtask|bgapp|bgprocessing"
find / -name '*.db' -o -name '*.sqlite*' -print0 2>/dev/null | while IFS= read -r -d '' file; do
for X in $(sqlite3 -readonly "$file" .tables 2>/dev/null); do
sqlite3 -readonly "$file" "SELECT * FROM \"$X\";" 2>/dev/null | grep -iE >/dev/null $NEEDLE && echo "Found in file '$file', table '$X'";
done
done This yields only false positives:
Similarly, if we search for the bundle ID of an app that has the permission:
|
Next idea: Apple also likes to store stuff in
Result:
|
From going through those, none of them seems relevant. I'll try Frida next. |
The docs I mentioned earlier various classes starting with
|
How about |
|
The headers for |
I think another thing to consider is the "Low power mode" in the battery settings. It might do similar things, it also claims to limit background activity. |
I'm not familiar with iOS, so I don't know whether this concept also applies there, but with #34, we're adding a function to control battery optimizations on Android, so we might need that on iOS as well.
I did find a "Background App Refresh" setting under "General" that seems relevant:
The text was updated successfully, but these errors were encountered: