Make FCM message priority high

merge-requests/740/head
inoshperera 4 years ago
parent daac0b2891
commit f07df95f52

@ -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