Skip to main content

registerPushToken

Requires a customer (portal or buyer app) session.

Register an Expo push token for the buyer's device.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RegisterPushToken($input: RegisterPushTokenInput!) {
registerPushToken(input: $input)
}

Variables:

{
"input": {
"deviceId": "id",
"platform": "ANDROID",
"token": "string"
}
}

Response:

{
"data": {
"registerPushToken": true
}
}
registerPushToken(
input: RegisterPushTokenInput!
): Boolean!

Arguments​

registerPushToken.input ● RegisterPushTokenInput! non-null input​

The details of the push token to register.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.