A deep package that provides links for working with @firebase/messaging
and typescript library to simplify integration with this deep package
- 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
- 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
- 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
- Insert
PushNotification
- Update its value to object like that contains
title
andbody
fields:{ "title": "My Title", "body": "My Body" }
- Insert
Notify
fromPushNotification
toDevice
- See push notification on your device :)
To receive messages on Client read Firebase Cloud Messaging Documentation
See Documentation for examples and API