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
Unknown Object (File)
Thu, Dec 26, 4:40 AM
Unknown Object (File)
Thu, Dec 19, 10:54 PM
Unknown Object (File)
Mon, Dec 16, 12:43 AM
Unknown Object (File)
Mon, Dec 16, 12:43 AM
Unknown Object (File)
Mon, Dec 16, 12:43 AM
Unknown Object (File)
Mon, Dec 16, 12:43 AM
Unknown Object (File)
Mon, Dec 16, 12:43 AM
Unknown Object (File)
Sun, Dec 15, 4:48 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