registerPushToStartToken method

Future<void> registerPushToStartToken(
  1. String activityType,
  2. String token
)

Implementation

Future<void> registerPushToStartToken(String activityType, String token) async {
  if (activityType.isEmpty || token.isEmpty) return;
  NexusLog.debug('liveActivity.pushToStart — $activityType');
  await _http.post('/partner/live-activities/push-token', {
    'activityType': activityType,
    'token': token,
    'distinctId': ?_id.distinctId,
    'deviceKey': _id.deviceKey,
  });
}