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
-[Migration from FCM legacy API to FCM HTTP v1 API (June 2024)](#migration-from-fcm-legacy-api-to-fcm-http-v1-api-june-2024)
26
-
-[Expo Push Options](#expo-push-options)
27
26
28
-
#Silent Notifications
27
+
## Installation
29
28
30
-
If you have migrated from parse.com and you are seeing situations where silent (newsstand-like presentless) notifications are failing to deliver please ensure that your payload is setting the content-available attribute to Int(1) and not "1" This value will be explicitly checked.
31
-
32
-
# Logging
33
-
34
-
You can enable verbose logging with environment variables:
35
-
36
-
```
37
-
VERBOSE=1
38
-
39
-
or
40
-
41
-
VERBOSE_PARSE_SERVER_PUSH_ADAPTER=1
42
-
```
43
-
44
-
This will produce a more verbose output for all the push sending attempts
#### Migration from FCM legacy API to FCM HTTP v1 API (June 2024)
124
+
Alternatively, instead of setting `firebaseServiceAccount`to the path of the JSON file, you can provide an object representing a Google Cloud service account key:
146
125
147
-
Sending push notifications to Android devices via the FCM legacy API was deprecated on June 20 2023 and was announced to be decomissioned in June 2024. See [Google docs](https://firebase.google.com/docs/cloud-messaging/migrate-v1). To send push notifications to the newer FCM HTTP v1 API you need to update your existing push configuration for Android by replacing the key `apiKey` with `firebaseServiceAccount`.
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.
144
+
145
+
#### Migration to FCM HTTP v1 API (June 2024)
146
+
147
+
⚠️ Sending push notifications to Android devices via the FCM legacy API was deprecated on June 20 2023 and was announced to be decommissioned in June 2024. See [Google docs](https://firebase.google.com/docs/cloud-messaging/migrate-v1). To send push notifications to the newer FCM HTTP v1 API you need to update your existing push configuration for Android by replacing the key `apiKey` with `firebaseServiceAccount`.
For more information see the [Expo docs](https://docs.expo.dev/push-notifications/overview/).
177
+
178
+
## Bundled with Parse Server
179
+
180
+
Parse Server already comes bundled with a specific version of the push adapter. This installation is only necessary when customizing the push adapter version that should be used by Parse Server. When using a customized version of the push adapter, ensure that it's compatible with the version of Parse Server you are using.
181
+
182
+
When using the bundled version, it is not necessary to initialize the push adapter in code and the push options are configured directly in the `push` key, without the nested `adapter` key:
183
+
184
+
```js
185
+
constparseServerOptions= {
186
+
push: {
187
+
ios: {
188
+
// Apple push options
189
+
},
190
+
// Other push options
191
+
},
192
+
// Other Parse Server options
193
+
}
194
+
```
195
+
196
+
## Logging
197
+
198
+
You can enable verbose logging to produce a more detailed output for all push sending attempts with the following environment variables:
0 commit comments