Platform permissions

From makifbaysal/tasktrooper · View interactive version

Platform permissions is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Use when a feature needs camera, location, photos, notifications, contacts, microphone, Bluetooth, or local network - the per-platform request flow, every denial state, and how to actually test the denied path when the shared test device auto-grants permissions.

How to use this skill

Skill file

Platform Permissions

Overview

A permission request handled only for the happy path (granted) crashes or dead-ends for a meaningful share of real users. Every state needs a designed response, and the denied path is the one app reviewers and store checks hit first.

iOS

Android

Flutter

Every state needs a response

granted · denied (show rationale, allow retry) · restricted (parental controls/MDM — no retry is possible, say so) · permanently denied (deep-link to Settings) — the feature degrades gracefully without the permission in every case; a denial never crashes or silently dead-ends the flow.

Testing reality in TaskTrooper

The shared Android test device auto-grants permissions (appium:autoGrantPermissions: true), so the denied/restricted/permanently-denied paths cannot be exercised by requesting on that device — a manual test there will always show "granted" regardless of what you're verifying. Test those paths with a fake permission service injected in a widget/unit test instead (stub it to return denied/restricted/permanently-denied and assert the UI responds correctly), and say explicitly in the closing message that the denied path was verified via a fake, not on-device.

Common Mistakes

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.