Skip to content

Commit 432154a

Browse files
committed
Set installation to fcm now.
The push adapter actually ignores the push type and falls back to the device type. It should be OK to classify these pushes as FCM. https://github.com/parse-community/parse-server-push-adapter/blob/master/src/PushAdapterUtils.js#L20 https://github.com/parse-community/parse-server-push-adapter/blob/master/src/ParsePushAdapter.js#L35 We should move off the parse-server GCM module because the FCM send only needs the GCloud project instead of sender ID.
1 parent ffea69f commit 432154a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fcm/src/main/java/com/parse/fcm/ParseFirebaseJobService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public boolean onStartJob(final JobParameters job) {
5050
if (installation != null && token != null) {
5151
installation.setDeviceToken(token);
5252
//even though this is FCM, calling it gcm will work on the backend
53-
installation.setPushType("gcm");
53+
installation.setPushType("fcm");
5454
installation.saveInBackground(new SaveCallback() {
5555
@Override
5656
public void done(ParseException e) {

0 commit comments

Comments
 (0)