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
-[Google Cloud Service Account Key](#google-cloud-service-account-key)
22
23
-[Migration to FCM HTTP v1 API (June 2024)](#migration-to-fcm-http-v1-api-june-2024)
23
24
-[Expo Push Options](#expo-push-options)
24
25
-[Bundled with Parse Server](#bundled-with-parse-server)
@@ -109,7 +110,9 @@ android: {
109
110
}
110
111
```
111
112
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:
113
116
114
117
```js
115
118
android: {
@@ -121,7 +124,7 @@ android: {
121
124
}
122
125
```
123
126
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`.
0 commit comments