Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fcm/src/main/java/com/parse/fcm/ParseFirebaseJobService.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
public class ParseFirebaseJobService extends JobService {

private static final String JOB_TAG_UPLOAD_TOKEN = "upload-token";
private static final String PUSH_TYPE = "fcm";

static Job createJob(FirebaseJobDispatcher dispatcher) {
return dispatcher.newJobBuilder()
Expand All @@ -50,7 +51,7 @@ public boolean onStartJob(final JobParameters job) {
if (installation != null && token != null) {
installation.setDeviceToken(token);
//even though this is FCM, calling it gcm will work on the backend
installation.setPushType("gcm");
installation.setPushType(PUSH_TYPE);
installation.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
Expand Down