HomePhabricator
Diffusion Comm a99ae04f1402

Remove messageInfos from Android notification if its size exceeds fcm limits

Description

Remove messageInfos from Android notification if its size exceeds fcm limits

Summary: This differential removes messageInfos fields from Android notification if it is too large. Size is compared to thresholds from google docs

Test Plan: Build Android app, launch Logcat in Android studio. Kill the app. Send short message from web client. Ensure notification is displayed and "db path:" count in logs increases (messageInfos is stored in SQLite). Send very large notification, ensure notification is displayed but "db path:" count in logs does not increase (messageInfos field is not present so nothing is stored in the database)

Reviewers: tomek, jacek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat, adrian, atul, abosh

Differential Revision: https://phab.comm.dev/D4643