/AWS1/CL_CGS=>REGISTERDEVICE()
¶
About RegisterDevice¶
Registers a device to receive push sync notifications.
This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
{
"Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
"Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
"Input":
{
"IdentityPoolId": "ID_POOL_ID",
"IdentityId": "IDENTITY_ID",
"Platform": "GCM",
"Token": "PUSH_TOKEN"
}
}
{ "Output": { "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse", "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014" }, "Version": "1.0" }
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_IDENTITYPOOLID
TYPE /AWS1/CGSIDENTITYPOOLID
/AWS1/CGSIDENTITYPOOLID
¶
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
IV_IDENTITYID
TYPE /AWS1/CGSIDENTITYID
/AWS1/CGSIDENTITYID
¶
The unique ID for this identity.
IV_PLATFORM
TYPE /AWS1/CGSPLATFORM
/AWS1/CGSPLATFORM
¶
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
IV_TOKEN
TYPE /AWS1/CGSPUSHTOKEN
/AWS1/CGSPUSHTOKEN
¶
The push token.