@virgodev/fcm-django-vue
v1.0.3
Published
This project connects FCM django and capacitor push notifications
Downloads
114
Keywords
Readme
FCM Django vue
This project connects FCM django and capacitor push notifications
django fcm provides a database to register devices capacitor handles the device's push notifications
Installation
- django:
pip install fcm-django - install capacitor
- vue:
npm install @virgodev/fcm-django-vue
Usage
Register the user device on login or resume
import { registerUser } from '@virgodev/fcm-django-vue/notifications'
registerUser(user)There is a store for notifications, notification actions and devices
import { useNotifications, useDevices } from '@virgodev/fcm-django-vue/notifications'
const notifications = useNotifications()
const devices = useDevices();
notifications.actions // user clicks on notification
notifications.list // notifications receieved
devices.list // user devices
