Skip to content

Commit 24e2810

Browse files
Update README.md
1 parent a18aa86 commit 24e2810

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ This type is located in the [`@deep-foundation/capacitor-device`](https://www.np
4040
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)
4141
## Push Notification
4242
- 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+
```
4750
## Notify
4851
- Insert [`Notify`] from [`PushNotification`] to [`Device`]
4952
- See push notification on your device :)

0 commit comments

Comments
 (0)