What problem does it solve?
MAUI developers often struggle with implementing runtime permissions consistently across platforms. This Skill provides a comprehensive approach to check and request permissions, handle all PermissionStatus outcomes, and structure custom permissions via BasePlatformPermission, while aligning with platform-specific manifest and plist requirements and enabling DI-friendly service patterns.
Core Features & Use Cases
- Check and request runtime permissions using the MAUI Permissions API for cross-platform consistency.
- Handle all PermissionStatus values (Unknown, Denied, Granted, Restricted, Limited, Disabled) and implement best-practice pre-checks and rationale flows.
- Define custom permissions by extending BasePlatformPermission for Android and other platforms.
- Ensure platform declarations: AndroidManifest.xml and Info.plist entries.
- Provide a DI-friendly service pattern to centralize permission management in apps.
Quick Start
Invoke the permission flow before accessing a protected feature and handle every possible status to ensure a smooth user experience.