Skip to content

Commit 4d3d28b

Browse files
rogerhuJawnnypoo
authored andcommitted
Use a constant instead (#821)
1 parent f3d47f6 commit 4d3d28b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcm/src/main/java/com/parse/gcm/ParseGCMJobService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)