alexa / alexa-skills-kit-sdk-for-java

The Alexa Skills Kit SDK for Java helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
http://developer.amazon.com/ask
Apache License 2.0
818 stars 748 forks source link

Alexa skills events not firing #256

Closed apanchati closed 4 years ago

apanchati commented 4 years ago

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[x ] Other... Please describe: question

Expected Behavior

Get event notification when user change permission or enable/disable skill.

Current Behavior

Not getting any event. I am assuming amazon will make a post request to same endpoint as used for other requests.

I have custom skill that calls web service i created. I am able to launch and get other intent, but i am not getting notification when permission for notification is changed by user of my skill. I need the notification event to get user id for sending push notifications later by other service.

Context

Below is my app json file used by ask-cli to create the skill: { "manifest": { "apis": { "custom": { "endpoint": { "uri": "https://pathToMyService", "sslCertificateType": "Wildcard" }, "interfaces": [] } }, "events": { "publications": [ { "eventName": "AMAZON.TrashCollectionAlert.Activated" }, { "eventName": "AMAZON.MessageAlert.Activated" } ], "subscriptions": [ { "eventName": "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED" }, { "eventName": "SKILL_ENABLED" }, { "eventName": "SKILL_DISABLED" }, { "eventName": "SKILL_PERMISSION_ACCEPTED" }, { "eventName": "SKILL_PERMISSION_CHANGED" }, ], "regions": { "NA": { "endpoint": { "uri": "https://pathToMyService", "sslCertificateType": "Wildcard" } } }, "endpoint": { "uri": "https://pathToMyService", "sslCertificateType": "Wildcard" } }, "manifestVersion": "1.0", "permissions": [ { "name": "alexa::devices:all:notifications:write" } ], "publishingInformation": { "locales": { "en-US": { "name": "Test Events" } } } } }

apanchati commented 4 years ago

I resolved the issue: When I updated by skill.json file using ask api update-skill -s amzn1.ask.skill.59d6 -f Test.json it didn't update properly. I noticed today when I got latest ask api get-skill -s amzn1.ask.skill.59d6 >Test2.json the event section was missing. I added back and reapplied and it's working now.