@deep-foundation/firebase-push-notification
v18.2.2-dev.0
Published
Provides links for working with @firebase/messaging and typescript library to simplify integration with this deep package
Downloads
127
Readme
A deep package that provides links for working with @firebase/messaging
and typescript library to simplify integration with this deep package
Usage
Setup
Service Account
- Insert
ServiceAccount
with string value
You can find it in firebase console in settings of your project - (optional) Insert
UsesServiceAccount
fromUser
toServiceAccount
to make it active
Web Push Certificate
- Insert
WebPushCertificate
with string value
You can find it in firebase console in settings of your project. You can use this url: https://console.firebase.google.com/project/PROJECT_ID/settings/serviceaccounts/adminsdk where you should changePROJECT_ID
to your project id - (optional) Insert
UsesWebPushCertificate
fromUser
toWebPushCertificate
to make it active
Device
- Insert
Device
This type is located in the@deep-foundation/capacitor-device
package and it is recommended to use its library - Insert
DeviceRegistrationToken
It is recommended to use registerDevice with insertDeviceRegistrationToken
Push Notification
- Insert
PushNotification
- Update its value to object like that contains
title
andbody
fields:{ "title": "My Title", "body": "My Body" }
Notify
- Insert
Notify
fromPushNotification
toDevice
- See push notification on your device :)
Client
To receive messages on Client read Firebase Cloud Messaging Documentation
Library
Library Usage
See Documentation for examples and API