0.0.7 • Published 11 months ago

@kim5257/capacitor-google-notifications v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

capacitor-google-notifications

FCM capacitor plugin

Install

npm install capacitor-google-notifications
npx cap sync

API

initialize(...)

initialize(initOptions: InitializeOptions, options: FCMOptions) => any
ParamType
initOptionsInitializeOptions
optionsFCMOptions

Returns: any


checkPermissions()

checkPermissions() => any

Returns: any


requestPermissions()

requestPermissions() => any

Returns: any


register(...)

register(options: { vapidKey: string; }) => any
ParamType
options{ vapidKey: string; }

Returns: any


unregister()

unregister() => any

Returns: any


getDeliveredNotifications()

getDeliveredNotifications() => any

Returns: any


removeDeliveredNotifications(...)

removeDeliveredNotifications(delivered: DeliveredNotifications) => any
ParamType
deliveredDeliveredNotifications

Returns: any


removeAllDeliveredNotifications()

removeAllDeliveredNotifications() => any

Returns: any


createChannel(...)

createChannel(channel: Channel) => any
ParamType
channelChannel

Returns: any


deleteChannel(...)

deleteChannel(args: { id: string; }) => any
ParamType
args{ id: string; }

Returns: any


listChannels()

listChannels() => any

Returns: any


addListener('registration', ...)

addListener(eventName: 'registration', listenerFunc: (token: Token) => void) => any
ParamType
eventName'registration'
listenerFunc(token: Token) => void

Returns: any


addListener('registrationError', ...)

addListener(eventName: 'registrationError', listenerFunc: (error: RegistrationError) => void) => any
ParamType
eventName'registrationError'
listenerFunc(error: RegistrationError) => void

Returns: any


addListener('pushNotificationReceived', ...)

addListener(eventName: 'pushNotificationReceived', listenerFunc: (notification: PushNotificationSchema) => void) => any
ParamType
eventName'pushNotificationReceived'
listenerFunc(notification: PushNotificationSchema) => void

Returns: any


addListener('pushNotificationActionPerformed', ...)

addListener(eventName: 'pushNotificationActionPerformed', listenerFunc: (notification: ActionPerformed) => void) => any
ParamType
eventName'pushNotificationActionPerformed'
listenerFunc(notification: ActionPerformed) => void

Returns: any


removeAllListeners()

removeAllListeners() => any

Returns: any


Interfaces

InitializeOptions

PropType
namestring
initializeboolean
initializeSwboolean

InstanceFactoryOptions

PropType
instanceIdentifierstring
options{}

FCMOptions

PropType
teststring

PermissionStatus

PropType
receivePermissionState | 'default'

DeliveredNotifications

PropType
notifications{}

PushNotificationSchema

PropType
titlestring
subtitlestring
bodystring
idstring
tagstring
badgestring
notificationany
dataany
clickActionstring
linkstring
groupstring
groupSummaryboolean

Channel

PropType
idstring
namestring
descriptionstring
soundstring
importanceImportance
visibilityVisibility
lightsboolean
lightColorstring
vibrationboolean

ListChannelsResult

PropType
channels{}

Token

PropType
valuestring

PluginListenerHandle

PropType
remove() => any

RegistrationError

PropType
errorstring

ActionPerformed

PropType
actionIdstring
inputValuestring
notificationPushNotificationSchema

Type Aliases

InitializeOptions

InstanceFactoryOptions

PermissionState

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

Importance

1 | 2 | 3 | 4 | 5

Visibility

-1 | 0 | 1

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago