registerPushNotificationBinding
Register a device token to receive push notifications for an app.
Bindings are keyed on the token and the application resolved from bundleId, externalProvider and service, so repeated calls with the same token and app update the existing binding rather than creating duplicates. The binding is always assigned to the calling user, so re-registering a token from a shared device transfers it to the current caller.
This field requires the Authorization header to be set.
Arguments
Input fields for creating an push notification binding.
Returns
RegisterPushNotificationBindingRegister a device token to receive push notifications for an app.
Bindings are keyed on the token and the application resolved from bundleId, externalProvider and service, so repeated calls with the same token and app update the existing binding rather than creating duplicates. The binding is always assigned to the calling user, so re-registering a token from a shared device transfers it to the current caller.
This field requires the Authorization header to be set.
Examples
mutation RegisterPushNotificationBinding($input: RegisterPushNotificationBindingInput!) {
registerPushNotificationBinding(input: $input) {
pushNotificationBinding {
...PushNotificationBindingTypeFragment
}
}
}
Variables
{
"input": RegisterPushNotificationBindingInput
}
Response
{
"data": {
"registerPushNotificationBinding": {
"pushNotificationBinding": PushNotificationBindingType
}
}
}