Skip to content

Commit 4777467

Browse files
authored
docs: Improve README (#250)
1 parent 73fed68 commit 4777467

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The official Push Notification adapter for Parse Server. See [Parse Server Push
1919
- [Configure Parse Server](#configure-parse-server)
2020
- [Apple Push Options](#apple-push-options)
2121
- [Android Push Options](#android-push-options)
22+
- [Google Cloud Service Account Key](#google-cloud-service-account-key)
2223
- [Migration to FCM HTTP v1 API (June 2024)](#migration-to-fcm-http-v1-api-june-2024)
2324
- [Expo Push Options](#expo-push-options)
2425
- [Bundled with Parse Server](#bundled-with-parse-server)
@@ -109,7 +110,9 @@ android: {
109110
}
110111
```
111112

112-
Alternatively, instead of setting `firebaseServiceAccount` to the path of the JSON file, you can provide an object representing a Google Cloud service account key:
113+
#### Google Cloud Service Account Key
114+
115+
The Firebase console allows to easily create and download a Google Cloud service account key JSON file with the required permissions. Instead of setting `firebaseServiceAccount` to the path of the JSON file, you can provide an object representing a Google Cloud service account key:
113116

114117
```js
115118
android: {
@@ -121,7 +124,7 @@ android: {
121124
}
122125
```
123126

124-
This can be helpful if you are already managing credentials to Google Cloud APIs in other parts of your code and you want to reuse these credentials, or if you want to manage credentials on a more granular level directly via Google Cloud.
127+
This can be helpful if you are already managing credentials to Google Cloud APIs in other parts of your code and you want to reuse these credentials, or if you want to manage credentials on a more granular level directly in Google Cloud. Make sure that the service account has the permission `cloudmessaging.messages.create` which is for example part of role `Firebase Cloud Messaging API Admin`.
125128

126129
#### Migration to FCM HTTP v1 API (June 2024)
127130

0 commit comments

Comments
 (0)