HomePhabricator
Diffusion Comm d2a209e2eb9e

Send broadcast from CommNotificationsHandler when foreground notification is…

Description

Send broadcast from CommNotificationsHandler when foreground notification is received. Forward parsed notification to JavaScript

Summary:
As of this differential, when CommNotificationsHandler receives notification in foreground it sends it as broadcast. CommAndroidNotificationsEventEmitter receives the broadcast, parses notification into JavaScript-readable object and sends it as event to JavaScript. On the JavaScript side we
types data that we receive as event, removed no-op if statement checking for rescind and subscribed to event in push-handler.js

Test Plan: Build the app. Send notifications when app is in the foreground but target thread is not opened. Ensure notifications are displayed as they were previously.

Reviewers: tomek, bartek

Reviewed By: tomek, bartek

Subscribers: ashoat, atul

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