1.0.8 • Published 1 year ago

resulcapacitor v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

resulcapacitor

Resul capacitor plugin

Install

npm install resulcapacitor
npx cap sync

API

register()

register() => Promise<void>

registerWithPermission()

registerWithPermission() => Promise<void>

updatePushToken(...)

updatePushToken(options: { token: string; }) => Promise<void>
ParamType
options{ token: string; }

onDeviceUserRegister(...)

onDeviceUserRegister(options: JsonObject) => Promise<void>
ParamType
optionsJsonObject

customEvent(...)

customEvent(options: JsonObject) => Promise<void>
ParamType
optionsJsonObject

locationUpdate(...)

locationUpdate(options: JsonObject) => Promise<void>
ParamType
optionsJsonObject

appConversionTracking(...)

appConversionTracking(options: JsonObject) => Promise<void>
ParamType
optionsJsonObject

getNotifications()

getNotifications() => Promise<{ notifications: any[]; }>

Returns: Promise<{ notifications: any[]; }>


getNotificationsReadCount()

getNotificationsReadCount() => Promise<{ count: number; }>

Returns: Promise<{ count: number; }>


getNotificationsUnReadCount()

getNotificationsUnReadCount() => Promise<{ count: number; }>

Returns: Promise<{ count: number; }>


deleteNotificationById(...)

deleteNotificationById(options: string) => Promise<string>
ParamType
optionsstring

Returns: Promise<string>


notificationCTAClicked(...)

notificationCTAClicked(options: JsonObject) => Promise<void>
ParamType
optionsJsonObject

deleteNotificationByCampaignId(...)

deleteNotificationByCampaignId(options: { campaignId: string; }) => Promise<string>
ParamType
options{ campaignId: string; }

Returns: Promise<string>


readNotification(...)

readNotification(options: { campaignId: string; }) => Promise<void>
ParamType
options{ campaignId: string; }

unReadNotification(...)

unReadNotification(options: { campaignId: string; }) => Promise<void>
ParamType
options{ campaignId: string; }

screenTracking(...)

screenTracking(options: { screenName: string; }) => Promise<void>
ParamType
options{ screenName: string; }

echo(...)

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

Returns: Promise<{ value: string; }>


addListener('registration', ...)

addListener(eventName: 'registration', listenerFunc: (token: Token) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'registration'
listenerFunc(token: Token) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('registrationError', ...)

addListener(eventName: 'registrationError', listenerFunc: (error: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'registrationError'
listenerFunc(error: any) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('pushNotificationReceived', ...)

addListener(eventName: 'pushNotificationReceived', listenerFunc: (notification: PushNotificationSchema) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'pushNotificationReceived'
listenerFunc(notification: PushNotificationSchema) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('pushNotificationActionPerformed', ...)

addListener(eventName: 'pushNotificationActionPerformed', listenerFunc: (notification: ActionPerformed) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'pushNotificationActionPerformed'
listenerFunc(notification: ActionPerformed) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Token

PropType
valuestring

PushNotificationSchema

PropType
titlestring
subtitlestring
bodystring
idstring
badgenumber
notificationany
dataany
click_actionstring
linkstring
groupstring
groupSummaryboolean

ActionPerformed

PropType
actionIdstring
inputValuestring
notificationPushNotificationSchema

Type Aliases

JsonObject

{ key: string: any; }

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago