question

Reliance Games avatar image
Reliance Games asked

"invalid_scope" response on requesting access token

Hi, We are facing an error while requesting access token for ADM. We followed the java example on page https://developer.amazon.com/sdk/adm/token.html#Making The invalid scope error is recurring even if we set the value of the parameter "scope" to "messaging:push". We even tried the python script " server.py" inside the DeviceMessaging/samples/server directory in the Apps-SDK.zip downloaded from https://developer.amazon.com/sdk/download/sdk.html The following is the response from running the python script Could not acquire token {'error_description': 'The request has an invalid parameter : scope', 'error': 'invalid_scope'} It would be kind of you if you could look into the issue and suggest a way out. Regards, JumpGames team
amazon device messaging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

adm-support avatar image
adm-support answered
Hi JumpGames, This might be because the security profile has not been enabled for ADM. This step to enable ADM is described here https://developer.amazon.com/sdk/adm/credentials.html and can be achieved by: 'Go to "Apps & Services > My Apps > Device Messaging" to enable ADM. If you do not enable ADM, any server requests to send messages to the app will fail.'
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.