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 {
3232
3333 private static final String JOB_TAG_REGISTER = "register" ;
3434 private static final String KEY_GCM_SENDER_ID = "gcm_sender_id" ;
35+ private static final String PUSH_TYPE = "gcm" ;
3536
3637 static Job createJob (FirebaseJobDispatcher dispatcher , String gcmSenderId ) {
3738 Bundle extras = new Bundle ();
@@ -66,7 +67,7 @@ public Void call() throws Exception {
6667 ParseInstallation installation = ParseInstallation .getCurrentInstallation ();
6768 installation .setDeviceToken (token );
6869 //even though this is FCM, calling it gcm will work on the backend
69- installation .setPushType ("gcm" );
70+ installation .setPushType (PUSH_TYPE );
7071 installation .save ();
7172 PLog .d (ParseGCM .TAG , "GCM registration success" );
7273 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments