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
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -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