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)
Wed, Nov 27, 2:34 AM
Unknown Object (File)
Wed, Nov 27, 1:54 AM
Unknown Object (File)
Wed, Nov 27, 1:51 AM
Unknown Object (File)
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
No Lint Coverage
Unit
No Test Coverage

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