Page MenuHomePhabricator

[lib] implement sending FCM notifs using Tunnelbroker
ClosedPublic

Authored by kamil on Jul 16 2024, 1:54 AM.
Tags
None
Referenced Files
F3140293: D12772.diff
Sun, Nov 3, 4:23 AM
Unknown Object (File)
Sat, Nov 2, 2:20 AM
Unknown Object (File)
Sat, Nov 2, 2:20 AM
Unknown Object (File)
Sat, Nov 2, 2:10 AM
Unknown Object (File)
Fri, Nov 1, 10:19 AM
Unknown Object (File)
Fri, Nov 1, 10:19 AM
Unknown Object (File)
Fri, Nov 1, 10:18 AM
Unknown Object (File)
Fri, Nov 1, 10:18 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
No Lint Coverage
Unit
No Test Coverage