Skip to content

Conversation

@TimoPtr
Copy link
Member

@TimoPtr TimoPtr commented Nov 25, 2025

Summary

Add missing battery optimization to the onboarding flow. It was there before the PR is bringing this to the onboarding. The permission is going to be displayed on the Set home network screen.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

@TimoPtr TimoPtr requested a review from jpelgrom November 26, 2025 10:00
@jpelgrom
Copy link
Member

Onboarding already continues in the background while the permission pop-up is shown, but I don't think that is an issue as we can continue without approval.

@jpelgrom
Copy link
Member

Actually, I can't get the dialog to show when onboarding with a https url, probably because location sharing is the last step and continue means the activity transitions. Did you test that flow?

@TimoPtr
Copy link
Member Author

TimoPtr commented Nov 26, 2025

Actually, I can't get the dialog to show when onboarding with a https url, probably because location sharing is the last step and continue means the activity transitions. Did you test that flow?

Nope I didn't test with HTTPS you're right... But then we have an issue until the WebView is part of the graph ....and not a standalone activity.

Or we need to show this dialog after the notification permission but that kinda sucks. Any other ideas?

@jpelgrom
Copy link
Member

startActivityForResult and wait for it to return? (not tested)

@TimoPtr
Copy link
Member Author

TimoPtr commented Nov 27, 2025

startActivityForResult and wait for it to return? (not tested)

Good call 👍🏻 It does work as intended, I tested on Android 9 and 6.

@TimoPtr TimoPtr requested a review from jpelgrom November 27, 2025 12:12
@jpelgrom
Copy link
Member

Tested again and now it waits before continuing, and also works as expected with a https url.

@jpelgrom jpelgrom merged commit b0e85e2 into feature/use_new_onboarding Nov 27, 2025
19 checks passed
@jpelgrom jpelgrom deleted the feature/onboarding_battery_optimization_permission branch November 27, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants