Pushtokens: remove

Requires authorization

Removes a push token for the current user and application. Removing a non-existent push token will report success. Try it now.

Request

HTTP request

POST https://www.googleapis.com/games/v1/pushtokens/remove

Parameters

Parameter name Value Description
Optional query parameters
consistencyToken long The last-seen mutation timestamp.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/games

Request body

In the request body, supply data with the following structure:

{
  "kind": "games#pushTokenId",
  "ios": {
    "apns_device_token": bytes,
    "apns_environment": string
  }
}
Property name Value Description Notes
kind string Uniquely identifies the type of this resource. Value is always the fixed string games#pushTokenId.
ios object A push token ID for iOS devices.
ios.apns_device_token bytes Device token supplied by an iOS system call to register for remote notifications. Encode this field as web-safe base64.
ios.apns_environment string Indicates whether this token should be used for the production or sandbox APNS server.

Acceptable values are:
  • "PRODUCTION"
  • "SANDBOX"

Response

If successful, this method returns a Pushtokens resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Play Games Services for Web
Play Games Services for Web