Skip to content

Commit ae63aca

Browse files
Merge branch 'main' of github.com:deep-foundation/firebase-push-notification
2 parents cca0d10 + e452f0b commit ae63aca

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/deep-foundation/firebase-push-notification)
33
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label&color=purple)](https://discord.gg/deep-foundation)
44

5-
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
66

77
# Table Of Contents
88
<!-- TABLE_OF_CONTENTS_START -->
@@ -31,7 +31,7 @@ You can find it in firebase console in settings of your project
3131
### Web Push Certificate
3232

3333
- 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
3535
- (optional) Insert [`UsesWebPushCertificate`] from `User` to [`WebPushCertificate`] to make it active
3636
### Device
3737
- Insert [`Device`]
@@ -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)