@capgo/capacitor-permissions
Check and request runtime permissions on iOS, Android, and web with one PermissionName enum and normalized status codes
Overview
Section titled “Overview”Check and request runtime permissions on iOS, Android, and web with one PermissionName enum and normalized status codes
Start with check() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
Core Capabilities
Section titled “Core Capabilities”check- Read the current status of one permission without prompting.request- Request one permission from the user.checkMultiple- Check several permissions without prompting.requestMultiple- Request several permissions sequentially.
Public API
Section titled “Public API”| Method | Description |
|---|---|
check | Read the current status of one permission without prompting. |
request | Request one permission from the user. |
checkMultiple | Check several permissions without prompting. |
requestMultiple | Request several permissions sequentially. |
shouldShowRationale | Whether Android should show a rationale before requesting again. |
openSettings | Open application or notification settings when access is blocked. |
requestPreciseLocation | Upgrade to precise location on iOS and fine location on Android. |
getPluginVersion | Returns the platform implementation version marker. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-permissions.
Keep going from @capgo/capacitor-permissions
Section titled “Keep going from @capgo/capacitor-permissions”If you are using @capgo/capacitor-permissions in your Capacitor app, connect it with Using @capgo/capacitor-permissions for the SEO tutorial and related Capgo plugin docs.