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…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
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
- Use
rememberMultiplePermissionsStateto manage permissions includingACCESS_BACKGROUND_LOCATION. - Use
LaunchedEffectto trigger permission requests. - Educational UI Requirement: If the app hasn't been granted the
ACCESS_BACKGROUND_LOCATIONpermission andshouldShowRationale()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.
- Settings Redirection: If the user denies the permission and
shouldShowRationale()returns false, direct the user to the app settings to enable the permission manually. - 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
- Initialize the permission state.
- Check permission status.
- Show rationale/educational UI if required.
- Request permission.
- 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
Установить Android 11+ Background Location Permission Flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл Android 11+ Background Location Permission Flow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Android 11+ Background Location Permission Flow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic