-
Notifications
You must be signed in to change notification settings - Fork 433
Android 11+ Background Location Permission Flow Update #4336
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
Android 11+ Background Location Permission Flow Update #4336
Conversation
- Implement special handling for `ACCESS_BACKGROUND_LOCATION` on API >= 30 in `AndroidImplementation.java`. - Bypass `ActivityCompat.requestPermissions` and guide users to Settings. - Add localization keys for new dialog strings. - Update developer guide with instructions on new behavior and build hint requirements.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
|
Developer Guide build artifacts are available for download from this workflow run:
Developer Guide quality checks: |
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
|
Compared 30 screenshots: 30 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
|
- Implement special handling for `ACCESS_BACKGROUND_LOCATION` on API >= 30 in `AndroidImplementation.java`. - Bypass `ActivityCompat.requestPermissions` and guide users to Settings. - Add localization keys for new dialog strings. - Update developer guide with instructions on new behavior and build hint requirements.
Clarified the process for requesting background location permissions on Android 11 and higher, including details about Codename One's handling of the flow and customization options.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Updated
AndroidImplementation.javato handle theACCESS_BACKGROUND_LOCATIONpermission separately on Android 11 (API 30) and newer. Instead of the standard permission request, which is often silently ignored or restricted by the OS for background location, the app now presents a dialog explaining the requirement and then directs the user to the app's settings page to manually enable "Allow all the time".The dialog strings are customizable via
Displayproperties:android.permission.ACCESS_BACKGROUND_LOCATION.titleandroid.permission.ACCESS_BACKGROUND_LOCATION.settingsandroid.permission.ACCESS_BACKGROUND_LOCATION.cancelandroid.permission.ACCESS_BACKGROUND_LOCATION.explanation_titleandroid.permission.ACCESS_BACKGROUND_LOCATION.explanation_bodyandroid.permission.ACCESS_BACKGROUND_LOCATION.okUpdated
docs/developer-guide/Miscellaneous-Features.asciidocto document this new behavior and theandroid.requiresBackgroundLocationPermissionForAPI29build hint.PR created automatically by Jules for task 11775562847077425485 started by @shai-almog