HomePhabricator
Diffusion Comm 01acb4d6df6c

[Tunnelbroker] add DDB column with information about invalid device token

Description

[Tunnelbroker] add DDB column with information about invalid device token

Summary:
ENG-8498.

This approach allows us to:

  1. Avoid attempting to send notifications to the provider multiple times even if the device token is invalid.
  2. Avoid queuing up a lot of messages to a device that the token is invalid, we can do it only once.

The alternative is deleting the device token but then it's complicated to distinguish if the token was invalidated or the device is logging to Tunnelbroker for the first time.

Depends on D12887

Test Plan: Test if getting the device token works, rest is tested later in the stack,

Reviewers: bartek, marcin, tomek

Reviewed By: bartek

Subscribers: ashoat, tomek

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

Details

Provenance
kamilAuthored on Jul 26 2024, 9:21 AM
Reviewer
bartek
Differential Revision
D12908: [Tunnelbroker] add DDB column with information about invalid device token
Parents
rCOMM10fde312ac66: [lib] update `SET_DEVICE_TOKEN_STARTED` payload
Branches
Unknown
Tags
Unknown