Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3376343
D4600.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
772 B
Referenced Files
None
Subscribers
None
D4600.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4600: Introduce iOS and Android notification max size thresholds as constants
Attached
Detach File
Event Timeline
Log In to Comment