jovotech / jovo-framework

🔈 The React for Voice and Chat: Build Apps for Alexa, Messenger, Instagram, the Web, and more
https://www.jovo.tech
Apache License 2.0
1.67k stars 310 forks source link

Proactive Events Does Not Alert Devices #399

Closed Voice-First-AI closed 5 years ago

Voice-First-AI commented 5 years ago

I'm submitting a...

Expected Behavior

Triggering the Alexa Proactive Events API should cause all devices with the skill enabled to display the AMAZON.MessageAlert.Activated notification to the customer.

Current Behavior

Devices with the skill enabled did not display AMAZON.MessageAlert.Activated notification although the intent is triggered.

There are no error messages. That's the most disturbing part.

Error log

{
    "version": "1.0",
    "session": {
        "new": false,
        "sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000",
        "application": {
            "applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
        },
        "attributes": {},
        "user": {
            "userId": "amzn1.account.AM3B00000000000000000000000"
        }
    },
    "context": {
        "System": {
            "application": {
                "applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
            },
            "user": {
                "userId": "amzn1.account.AM3B00000000000000000000000"
            },
            "device": {
                "deviceId": "amzn1.ask.device.XXXXXA6LX6BOBJF6XNWQM2ZO4NVVGZRFFEL6PMXKWLOHI36IY3B4XCSZKZPR42RAWCBSQEDNGS746OCC2PKR5KDIVAUY6F2DX5GV2SQAXPD7GMKQRWLG4LFKXFPVLVTXHFGLCQKHB7ZNBKLHQU4SJG6NNGA",
                "supportedInterfaces": {
                    "AudioPlayer": {}
                }
            },
            "apiEndpoint": "https://api.amazonalexa.com"
        },
        "AudioPlayer": {
            "offsetInMilliseconds": 0,
            "playerActivity": "IDLE"
        }
    },
    "request": {
        "type": "IntentRequest",
        "requestId": "amzn1.echo-api.request.0000000-0000-0000-0000-00000000000",
        "timestamp": "2015-05-13T12:34:56Z",
        "dialogState": "COMPLETED",
        "locale": "en-US",
        "intent": {
            "name": "LaundryAlertIntent",
            "confirmationStatus": "NONE",
            "slots": {}
        }
    }
}
{
    "version": "1.0",
    "response": {
        "shouldEndSession": true
    },
    "sessionAttributes": {}
}

Your Environment

KaanKC commented 5 years ago

Does the dev account the dot is connected to have provided the necessary permissions in the Alexa app?

You can find it under Skills > Dev Skills > {Your Skill} > Settings

Voice-First-AI commented 5 years ago

Yes we were able to fix this by changing the API request from EU(in demo) to US

jankoenig commented 5 years ago

Oh, thanks! We need to update this in the docs so people know where to look. cc @KaanKC