appBskyNotificationRegisterPush function
Register to receive push notifications, via a specified service, for the requesting account. Requires auth.
Implementation
Future<XRPCResponse<EmptyData>> appBskyNotificationRegisterPush({
required String serviceDid,
required String token,
required NotificationRegisterPushPlatform platform,
required String appId,
bool? ageRestricted,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.appBskyNotificationRegisterPush,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'serviceDid': serviceDid,
'token': token,
'platform': platform.toJson(),
'appId': appId,
if (ageRestricted != null) 'ageRestricted': ageRestricted,
},
);