File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
gcm/src/main/java/com/parse/gcm Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public class ParseGCMJobService extends JobService {
32
32
33
33
private static final String JOB_TAG_REGISTER = "register" ;
34
34
private static final String KEY_GCM_SENDER_ID = "gcm_sender_id" ;
35
+ private static final String PUSH_TYPE = "gcm" ;
35
36
36
37
static Job createJob (FirebaseJobDispatcher dispatcher , String gcmSenderId ) {
37
38
Bundle extras = new Bundle ();
@@ -66,7 +67,7 @@ public Void call() throws Exception {
66
67
ParseInstallation installation = ParseInstallation .getCurrentInstallation ();
67
68
installation .setDeviceToken (token );
68
69
//even though this is FCM, calling it gcm will work on the backend
69
- installation .setPushType ("gcm" );
70
+ installation .setPushType (PUSH_TYPE );
70
71
installation .save ();
71
72
PLog .d (ParseGCM .TAG , "GCM registration success" );
72
73
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments