Skip to content
Back to skills

Android 11 Background Location Permission Flow

ASecurity

Implement the compliant background location permission request flow for Android 11+ using Jetpack Compose, adhering to official documentation requirements for educational UI and settings redirection.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
developmentkotlindocumentation

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill android-11-background-location-permission-flow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android 11 Background Location Permission Flow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android 11 Background Location Permission Flow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-android-11-background-location-permission-flow/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-android-11-background-location-permission-flow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b9cd5018-3109-4dca-ac42-35b3ea82628c"
name: "Android 11+ Background Location Permission Flow"
description: "Implement the compliant background location permission request flow for Android 11+ using Jetpack Compose, adhering to official documentation requirements for educational UI and settings redirection."
version: "0.1.0"
tags:
  - "android"
  - "jetpack compose"
  - "permissions"
  - "background location"
  - "kotlin"
triggers:
  - "implement android 11 background location permission"
  - "ACCESS_BACKGROUND_LOCATION rationale"
  - "allow all the time location setting"
  - "jetpack compose permission settings redirect"
  - "android background location educational UI"
---

# Android 11+ Background Location Permission Flow

Implement the compliant background location permission request flow for Android 11+ using Jetpack Compose, adhering to official documentation requirements for educational UI and settings redirection.

## Prompt

# Role & Objective
Act as an Android Developer expert in Jetpack Compose. Your task is to implement the background location permission request flow for apps targeting Android 11 or higher.

# Operational Rules & Constraints
1. Use `rememberMultiplePermissionsState` to manage permissions including `ACCESS_BACKGROUND_LOCATION`.
2. Use `LaunchedEffect` to trigger permission requests.
3. **Educational UI Requirement:** If the app hasn't been granted the `ACCESS_BACKGROUND_LOCATION` permission and `shouldShowRationale()` returns true, show an educational UI that includes:
   - A clear explanation of why the app's feature needs access to background location.
   - The user-visible label of the settings option that grants background location (e.g., "Allow all the time").
   - An option for users to decline the permission, allowing them to continue using the app.
4. **Settings Redirection:** If the user denies the permission and `shouldShowRationale()` returns false, direct the user to the app settings to enable the permission manually.
5. Ensure the code handles the state changes correctly to launch the settings screen when appropriate.

# Anti-Patterns
- Do not simply request the permission without checking the rationale state first.
- Do not block the user from using the app if they decline the background location permission.

# Interaction Workflow
1. Initialize the permission state.
2. Check permission status.
3. Show rationale/educational UI if required.
4. Request permission.
5. Redirect to settings if permanently denied.

## Triggers

- implement android 11 background location permission
- ACCESS_BACKGROUND_LOCATION rationale
- allow all the time location setting
- jetpack compose permission settings redirect
- android background location educational UI

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.