The id field of Android notification must be either string or be absent at all. Currently if notification doesn't have id field
encryptAndroidNotification function puts nullish value to its encrypted form. This was the casue of
https://linear.app/comm/issue/ENG-6051/encrypted-badge-updates-on-android-are-broken.
Details
Details
- Add console.log to fcmSInglePush method to log if sending notifications fails.
- Build Android app and send badge only notification.
- Ensure no error is logged
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
keyserver/src/push/crypto.js | ||
---|---|---|
201–204 ↗ | (On Diff #34566) | plaintext is a single word. Regardless, I think unencryptedData might be less confusing. |
Comment Actions
- Address comment about inaccurate name for data that is not supposed to undergo encryption.
- Rebase before landing.