Page MenuHomePhabricator

D4600.diff
No OneTemporary

D4600.diff

diff --git a/keyserver/src/push/utils.js b/keyserver/src/push/utils.js
--- a/keyserver/src/push/utils.js
+++ b/keyserver/src/push/utils.js
@@ -20,9 +20,11 @@
'messaging/registration-token-not-registered',
'messaging/invalid-registration-token',
]);
+const fcmMaxNotificationPayloadByteSize = 4000;
const apnTokenInvalidationErrorCode = 410;
const apnBadRequestErrorCode = 400;
const apnBadTokenErrorString = 'BadDeviceToken';
+const apnMaxNotificationPayloadByteSize = 4096;
type APNPushResult =
| { +success: true }
@@ -196,4 +198,10 @@
return usersToUnreadCounts;
}
-export { apnPush, fcmPush, getUnreadCounts };
+export {
+ apnPush,
+ fcmPush,
+ getUnreadCounts,
+ apnMaxNotificationPayloadByteSize,
+ fcmMaxNotificationPayloadByteSize,
+};

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 11:29 PM (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2592075
Default Alt Text
D4600.diff (772 B)

Event Timeline