question

Stephen Potter avatar image
Stephen Potter asked

Voice Forward Consent for Country/Postal Code returns result status "REDIRECT_TO_APP"

I am unable to invoke the voice-forward dialogue where Alexa asks the user to grant permissions to the postal code of their devices via voice instead of pushing the user to the app.

Instead I get the non-voice-forward response: "To continue, please visit your Alexa app to give (skill name) the permissions".

This is a US/UK/CA skill. I have set "Country/Region & Postal Code Only" in the Permissions section of the skill in the Console. I am using the Python SDK.

I am calling the connections directive thus:

return handler_input.response_builder.add_directive(
StartConnectionDirective(
uri="connection://AMAZON.AskForPermissionsConsent/2",
input={
'@type':'AskForPermissionsConsentRequest',
'@version':'2',
'permissionScopes': [
{
'permissionScope': 'alexa:devices:all:address:country_and_postal_code:read',
'consentLevel': 'ACCOUNT'
}
]
},
token="correlationToken"
)
).response

And in my handler for the response, I get this value in handler_input.request_envelope.request.cause when permissions are not granted:

{
'object_type': 'ConnectionCompleted',
'result': {
'permissionScopes': [
{'consentLevel': 'ACCOUNT',
'permissionScope': 'alexa:devices:all:address:country_and_postal_code:read'}
],
'status': 'REDIRECT_TO_APP'
},
'status': {'code': '200', 'message': 'Ok'},
'token': 'correlationToken'
}

Why is this?

alexapermissions
2 comments
10 |5000

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

Could you solve this ??
0 Likes 0 ·
Stephen Potter avatar image Stephen Potter Sai Krishna Rajesh Chittoor commented ·

No.

0 Likes 0 ·

1 Answer

Stephen Potter avatar image
Stephen Potter answered

Fixed: non-issue. The code is fine, it's just that this feature does not work in the ASK Test Console. It works on an Echo device.

10 |5000

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