mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Increase FCM TTL
This commit is contained in:
parent
4f88c2354c
commit
daac0b2891
@ -45,7 +45,7 @@ public class FCMNotificationStrategy implements NotificationStrategy {
|
|||||||
private static final String FCM_TOKEN = "FCM_TOKEN";
|
private static final String FCM_TOKEN = "FCM_TOKEN";
|
||||||
private static final String FCM_ENDPOINT = "https://fcm.googleapis.com/fcm/send";
|
private static final String FCM_ENDPOINT = "https://fcm.googleapis.com/fcm/send";
|
||||||
private static final String FCM_API_KEY = "fcmAPIKey";
|
private static final String FCM_API_KEY = "fcmAPIKey";
|
||||||
private static final int TIME_TO_LIVE = 5 * 60; //Set FCM TTL to 5 minutes
|
private static final int TIME_TO_LIVE = 2419199; // 1 second less that 28 days
|
||||||
private static final int HTTP_STATUS_CODE_OK = 200;
|
private static final int HTTP_STATUS_CODE_OK = 200;
|
||||||
private final PushNotificationConfig config;
|
private final PushNotificationConfig config;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user