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)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Sat, Jul 6, 11:19 PM
Unknown Object (File)
Fri, Jul 5, 12:18 PM
Unknown Object (File)
Wed, Jul 3, 11:13 AM

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