registerPush method

Future<XRPCResponse<EmptyData>> registerPush({
  1. required String serviceDid,
  2. required String token,
  3. required NotificationRegisterPushPlatform platform,
  4. required String appId,
  5. bool? ageRestricted,
  6. String? $service,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Register to receive push notifications, via a specified service, for the requesting account. Requires auth.

Implementation

Future<XRPCResponse<EmptyData>> registerPush({
  required String serviceDid,
  required String token,
  required NotificationRegisterPushPlatform platform,
  required String appId,
  bool? ageRestricted,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await appBskyNotificationRegisterPush(
  serviceDid: serviceDid,
  token: token,
  platform: platform,
  appId: appId,
  ageRestricted: ageRestricted,
  $ctx: ctx,
  $service: $service,
  $headers: $headers,
  $unknown: $unknown,
);