Published npm version of the capacitor plugin created by hermitdemschoenenleben Used for acquiring POST_NOTIFICATIONS permission on android >= 13. This is a workaround until https://github.com/ionic-team/capacitor-plugins/issues/1135 is fixed.
npm install capacitor-plugin-android-post-notifications-permission
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
checkPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
requestPermissions(permissions?: AndroidNotificationPermissionPluginPermissions | undefined) => Promise<PermissionStatus>
Param | Type |
---|---|
permissions |
AndroidNotificationPermissionPluginPermissions |
Returns: Promise<PermissionStatus>
Prop | Type |
---|---|
postNotifications |
PermissionState |
Prop | Type |
---|---|
permissions |
'postNotifications'[] |
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'
'postNotifications'