android-post-notification-permission
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

capacitor-plugin-android-post-notifications-permission

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.

Install

npm install capacitor-plugin-android-post-notifications-permission
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


checkPermissions()

checkPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


requestPermissions(...)

requestPermissions(permissions?: AndroidNotificationPermissionPluginPermissions | undefined) => Promise<PermissionStatus>
Param Type
permissions AndroidNotificationPermissionPluginPermissions

Returns: Promise<PermissionStatus>


Interfaces

PermissionStatus

Prop Type
postNotifications PermissionState

AndroidNotificationPermissionPluginPermissions

Prop Type
permissions 'postNotifications'[]

Type Aliases

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

AndroidNotificationPermissionType

'postNotifications'

Readme

Keywords

Package Sidebar

Install

npm i android-post-notification-permission

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

18.6 kB

Total Files

19

Last publish

Collaborators

  • robertmadril
  • hdoerr