From f07df95f527fe920adef455f2c0590839650b69f Mon Sep 17 00:00:00 2001 From: inoshperera Date: Mon, 22 Feb 2021 19:30:25 +0530 Subject: [PATCH] Make FCM message priority high --- .../push/notification/provider/fcm/FCMNotificationStrategy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/fcm/FCMNotificationStrategy.java b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/fcm/FCMNotificationStrategy.java index 29dd61617e..2894b04326 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/fcm/FCMNotificationStrategy.java +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm/src/main/java/org/wso2/carbon/device/mgt/extensions/push/notification/provider/fcm/FCMNotificationStrategy.java @@ -126,6 +126,7 @@ public class FCMNotificationStrategy implements NotificationStrategy { JsonObject fcmRequest = new JsonObject(); fcmRequest.addProperty("delay_while_idle", false); fcmRequest.addProperty("time_to_live", TIME_TO_LIVE); + fcmRequest.addProperty("priority", "high"); //Add message to FCM request JsonObject data = new JsonObject();