API
Push Notifications

Push Notifications

Update Notification Token

In order to initiate user registration flow, you have to use the same mutation as for login:

mutation UpdateNotificationToken($token: String!) {
  updateNotificationToken(token: $token)
}

with following payload:

{
  "token": "xyz" // or null
}

the response will be:

{
  "data": {
    "updateNotificationToken": "OK"
  }
}

Update Notification Preference

In order to initiate user registration flow, you have to use the same mutation as for login:

mutation UpdateNotificationPreference($isNotificationEnabled: Boolean!) {
  updateNotificationPreference(isNotificationEnabled: $isNotificationEnabled)
}

with following payload:

{
  "isNotificationEnabled": true // or false
}

the response will be:

{
  "data": {
    "updateNotificationPreference": "OK"
  }
}