Merge branch 'sync_fix' into 'master'

Make FCM message priority high

See merge request entgra/carbon-device-mgt!740
merge-requests/742/head
Inosh Perara 4 years ago
commit ecca2b3f19

@ -126,6 +126,7 @@ public class FCMNotificationStrategy implements NotificationStrategy {
JsonObject fcmRequest = new JsonObject(); JsonObject fcmRequest = new JsonObject();
fcmRequest.addProperty("delay_while_idle", false); fcmRequest.addProperty("delay_while_idle", false);
fcmRequest.addProperty("time_to_live", TIME_TO_LIVE); fcmRequest.addProperty("time_to_live", TIME_TO_LIVE);
fcmRequest.addProperty("priority", "high");
//Add message to FCM request //Add message to FCM request
JsonObject data = new JsonObject(); JsonObject data = new JsonObject();

Loading…
Cancel
Save