You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides links for working with [`@firebase/messaging`](https://www.npmjs.com/package/@firebase/messaging) and typescript library for comfortable using of this deep package using typescript
5
+
A deep package that provides links for working with [`@firebase/messaging`](https://www.npmjs.com/package/@firebase/messaging) and typescript library for comfortable using of this deep package using typescript
6
6
7
7
# Table Of Contents
8
8
<!-- TABLE_OF_CONTENTS_START -->
@@ -31,7 +31,7 @@ You can find it in firebase console in settings of your project
31
31
### Web Push Certificate
32
32
33
33
- Insert [`WebPushCertificate`] with string value
34
-
You can find it in firebase console in settings of your project
34
+
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 change `PROJECT_ID` to your project id
35
35
- (optional) Insert [`UsesWebPushCertificate`] from `User` to [`WebPushCertificate`] to make it active
36
36
### Device
37
37
- Insert [`Device`]
@@ -40,10 +40,13 @@ This type is located in the [`@deep-foundation/capacitor-device`](https://www.np
40
40
It is recommended to use [registerDevice](https://deep-foundation.github.io/firebase-push-notification/functions/registerDevice.html) with [insertDeviceRegistrationToken](https://deep-foundation.github.io/firebase-push-notification/functions/insertDeviceRegistrationToken.html)
41
41
## Push Notification
42
42
- Insert [`PushNotification`]
43
-
- Insert any link with string value that contains title for yout push notification
44
-
You can use `SyncTextFile` from [`@deep-foundation/core`](https://www.npmjs.com/package/@deep-foundation/core) to do it.
45
-
- Insert [`PushNotification`] from [`PushNotificationTitle`] to `SyncTextFile` that contains title for push notification
46
-
- Do the above two steps for [`PushNotificationBody`] and optionally for [`PushNotificationImageUrl`], [`PushNotificationIconUrl`]
43
+
- Update its value to object like that contains `title` and `body` fields:
44
+
```json
45
+
{
46
+
"title": "My Title",
47
+
"body": "My Body"
48
+
}
49
+
```
47
50
## Notify
48
51
- Insert [`Notify`] from [`PushNotification`] to [`Device`]
0 commit comments