Page MenuHomePhabricator

Introduce iOS and Android notification max size thresholds as constants
ClosedPublic

Authored by marcin on Jul 21 2022, 7:57 AM.
Tags
None
Referenced Files
F3376848: D4600.id15268.diff
Wed, Nov 27, 2:34 AM
F3376735: D4600.id14834.diff
Wed, Nov 27, 1:54 AM
F3376729: D4600.id15271.diff
Wed, Nov 27, 1:51 AM
F3376343: D4600.diff
Tue, Nov 26, 11:29 PM
Unknown Object (File)
Sat, Nov 9, 11:38 AM
Unknown Object (File)
Sat, Nov 9, 6:29 AM
Unknown Object (File)
Fri, Nov 8, 9:04 PM
Unknown Object (File)
Fri, Nov 8, 8:37 PM

Details

Summary

According to documentations, iOS max notification size is 4096 bytes, while for Android (FCM) it is 4000 bytes. Including this constants in 'utils' since there are some other constants related to notifications.

Test Plan

There is no test plan for this issue. Links to documentation that support values are in the Linear

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Remove redundant function definition

tomek added inline comments.
keyserver/src/push/utils.js
23 ↗(On Diff #14803)

Maybe notification to avoid confusion?

This revision is now accepted and ready to land.Jul 22 2022, 6:39 AM

Rename message to notification in constants

Rebase master before landing