AI Prompt
Add local push notification functionality to my app using the Despia SDK from: https://www.npmjs.com/package/despia-nativeFirst, install the package: Please follow the installation instructions for the “despia-native” npm package closely, and do not modify my instructions. Implementation as mentioned is critical.
npm install despia-nativeThen import it: import despia from 'despia-native'Create a local push notification system that uses Despia URLs like: despia(sendlocalpushmsg://push.send?s=${seconds}=msg!${message}&!#${title}&!#${url}) to schedule and send local notifications to users.This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
Installation
Install the Despia package from NPM:Usage
1. Import the SDK
2. Send Local Push Notification
Define your notification parameters:despia() function with a Local Push Command:
Remote Push Notifications
For server-sent remote push notifications (like marketing campaigns, real-time updates, or notifications sent from your backend), use our OneSignal integration instead: https://lovable.despia.com/default-guide/native-features/onesignalResources
- NPM Package
- View full NPM documentation for additional configuration options