File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
fcm/src/main/java/com/parse/fcm Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 26
26
public class ParseFirebaseJobService extends JobService {
27
27
28
28
private static final String JOB_TAG_UPLOAD_TOKEN = "upload-token" ;
29
+ private static final String PUSH_TYPE = "fcm" ;
29
30
30
31
static Job createJob (FirebaseJobDispatcher dispatcher ) {
31
32
return dispatcher .newJobBuilder ()
@@ -50,7 +51,7 @@ public boolean onStartJob(final JobParameters job) {
50
51
if (installation != null && token != null ) {
51
52
installation .setDeviceToken (token );
52
53
//even though this is FCM, calling it gcm will work on the backend
53
- installation .setPushType ("gcm" );
54
+ installation .setPushType (PUSH_TYPE );
54
55
installation .saveInBackground (new SaveCallback () {
55
56
@ Override
56
57
public void done (ParseException e ) {
You can’t perform that action at this time.
0 commit comments