
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
capacitor-notify-persistent
Advanced tools
Notification Persistent
npm install capacitor-notify-persistent
npx cap sync
stopContinuousVibration()
enablePlugin()
disablePlugin()
isEnabled()
addListener('notificationActionPerformed', ...)
addListener('notificationLocalActionPerformed', ...)
addListener('notificationReceived', ...)
addListener('tokenReceived', ...)
removeAllListeners()
checkPermissions()
requestPermissions()
getToken(...)
deleteToken()
Interface para gerenciar o plugin de notificações persistentes.
stopContinuousVibration() => Promise<{ value: boolean; }>
Interrompe a vibração contínua.
Returns: Promise<{ value: boolean; }>
enablePlugin() => Promise<void>
Habilita o plugin.
disablePlugin() => Promise<void>
Desabilita o plugin.
isEnabled() => Promise<{ value: boolean; }>
Verifica se o plugin está habilitado.
Returns: Promise<{ value: boolean; }>
addListener(eventName: 'notificationActionPerformed', listenerFunc: (notification: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Adiciona um listener para o evento de notificação recebida.
Param | Type | Description |
---|---|---|
eventName | 'notificationActionPerformed' | O nome do evento ('notificationActionPerformed' ou 'notificationAction'). |
listenerFunc | (notification: any) => void | A função que será chamada quando o evento ocorrer. |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'notificationLocalActionPerformed', listenerFunc: (action: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Adds a listener for the notification action event.
Param | Type | Description |
---|---|---|
eventName | 'notificationLocalActionPerformed' | - The name of the event ('notificationLocalActionPerformed' or 'notificationAction'). |
listenerFunc | (action: any) => void | - The function that will be called when the event occurs. |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Since: 0.2.2
addListener(eventName: 'notificationReceived', listenerFunc: (action: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName | 'notificationReceived' |
listenerFunc | (action: any) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'tokenReceived', listenerFunc: TokenReceivedListener) => Promise<PluginListenerHandle> & PluginListenerHandle
Called when a new FCM token is received.
Only available for Android and iOS.
Param | Type |
---|---|
eventName | 'tokenReceived' |
listenerFunc | TokenReceivedListener |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Since: 0.2.2
removeAllListeners() => Promise<void>
checkPermissions() => Promise<PermissionStatus>
Check permission to receive push notifications.
On Android, this method only needs to be called on Android 13+.
Returns: Promise<PermissionStatus>
Since: 0.2.2
requestPermissions() => Promise<PermissionStatus>
Request permission to receive push notifications.
On Android, this method only needs to be called on Android 13+.
Returns: Promise<PermissionStatus>
Since: 0.2.2
getToken(options?: GetTokenOptions | undefined) => Promise<GetTokenResult>
Param | Type |
---|---|
options | GetTokenOptions |
Returns: Promise<GetTokenResult>
deleteToken() => Promise<void>
Delete the FCM token and unregister the app to stop receiving push notifications. Can be called, for example, when a user signs out.
Since: 0.2.2
Prop | Type |
---|---|
remove | () => Promise<void> |
Prop | Type | Since |
---|---|---|
token | string | 0.2.2 |
Prop | Type | Since |
---|---|---|
receive | PermissionState | 0.2.2 |
Prop | Type | Since |
---|---|---|
token | string | 0.2.2 |
Prop | Type | Description |
---|---|---|
vapidKey | string | Your VAPID public key, which is required to retrieve the current registration token on the web. Only available for Web. |
serviceWorkerRegistration | ServiceWorkerRegistration | The service worker registration for receiving push messaging. If the registration is not provided explicitly, you need to have a firebase-messaging-sw.js at your root location. Only available for Web. |
Callback to receive the token received event.
(event: TokenReceivedEvent): void
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'
FAQs
Notification Persistent
The npm package capacitor-notify-persistent receives a total of 0 weekly downloads. As such, capacitor-notify-persistent popularity was classified as not popular.
We found that capacitor-notify-persistent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.