HomePhabricator
Diffusion Comm 3937a61faf82

Use MessageOperationsUtilities on Android

Description

Use MessageOperationsUtilities on Android

Summary: This diff uses MessageOperationsFunctionality and JNI files from previous diff to store notification in CommNotificationsHandler on Android.

Test Plan:
Log message content in C++ when sending notification. Do this for every message type. Additionally temporarily modify send.js prepareAndroidNotification code to send notification as if codeVersion < 31 and check that messages are still parsed correctly.

Comment out set_encryption_key method in SQLiteQueryExecutor (to disable encryption) code build app on an emulator, launch it and immediately kill. Then send a message from another client. Open device file explorer in Android studio and download comm.sqlite database. Examine its content in some sqlite explorer (vscode has a preety good one) to ensure that messages are there even though app was not launched after sending message.

Reviewers: palys-swm, karol-bisztyga

Reviewed By: palys-swm

Subscribers: ashoat, Adrian, atul, yayabosh

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

Details

Provenance
marcinAuthored on May 18 2022, 3:16 AM
Reviewer
tomek
Differential Revision
D4070: Use MessageOperationsUtilities on Android
Parents
rCOMM19b504403007: Implement JNI files to use MessageOperationUtilities in…
Branches
Unknown
Tags
Unknown