Page MenuHomePhabricator

[lib] implement sending FCM notifs using Tunnelbroker
ClosedPublic

Authored by kamil on Jul 16 2024, 1:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 1, 5:52 PM
Unknown Object (File)
Mon, Aug 26, 9:52 PM
Unknown Object (File)
Mon, Aug 26, 12:34 PM
Unknown Object (File)
Sun, Aug 25, 10:35 PM
Unknown Object (File)
Sun, Aug 25, 9:15 AM
Unknown Object (File)
Fri, Aug 16, 11:59 AM
Unknown Object (File)
Thu, Aug 15, 4:21 AM
Unknown Object (File)
Thu, Aug 15, 1:48 AM
Subscribers

Details

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);

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable