HomePhabricator
Diffusion Comm 0026f1d14eae

[lib] implement sending FCM notifs using Tunnelbroker

Description

[lib] implement sending FCM notifs using Tunnelbroker

Summary:
Client code to send notif - only updating types to allow this.

Depends on D12771

Test Plan:
Testing different variants of:

const notf: TunnelbrokerFCMNotif = {
        type: 'FCMNotif',
        clientMessageID: uuid.v4(),
        deviceID: '3434',
        data: JSON.stringify({
          id: '1234',
          body: 'test notif from TB',
          title: 'HELLO FROM TB',
          prefix: 'pref',
          threadID: 'thread',
          badge: '12',
        }),
        priority: 'HIGH',
      };
      await sendNotif(notf);

Reviewers: bartek, marcin

Reviewed By: bartek, marcin

Subscribers: ashoat, tomek

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

Details

Provenance
kamilAuthored on Jul 15 2024, 9:17 AM
Reviewer
bartek
Differential Revision
D12772: [lib] implement sending FCM notifs using Tunnelbroker
Parents
rCOMM781cf567e424: [Tunnelbroker] implement sending FCM notifs by client
Branches
Unknown
Tags
Unknown