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, Dec 22, 1:18 AM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Mon, Dec 16, 10:50 PM
Unknown Object (File)
Thu, Nov 28, 5:01 AM
Unknown Object (File)
Nov 24 2024, 1:01 PM
Unknown Object (File)
Nov 24 2024, 9:58 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