alexa-labs / skill-sample-alexa-for-apps Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
please try to resolve my issue fast
I did some changes on this sample to test the WEBSITE_LINK instead of ANDROID_PACKAGE, like it:
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.LinkApp/2",
"input": {
"links": {
"GOOGLE_PLAY_STORE": {
"primary": {
"WEBSITE_LINK": {
"url": "www.amazon.com"
}
}
},
"IOS_APP_STORE": {
"primary": {
"WEBSITE_LINK": {
"url": "www.amazon.com"
}
}
}
},
"prompt": {
"topic": "your amazon link",
"directLaunchDefaultPromptBehavior": "SPEAK"
}
}
}
But I'm getting an Invalid request error
{
"type": "SessionResumedRequest",
"requested": "...",
"timestamp": "....",
"locale": "pt-BR",
"cause": {
"type": "ConnectionCompleted",
"status": {
"code": "400",
"message": "Request is not valid."
},
"result": {
"primary": {
"errorCode": "INVALID_REQUEST",
"status": "FAILURE"
}
}
}
}
using the original request, ANDROID_PACKAGE, the skill is working 100%. But not with the WEBSITE_LINK
Also, this same problem is happening with UNIVERSAL_LINK
THE REQUEST
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.LinkApp/2",
"input": {
"links": {
"GOOGLE_PLAY_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "com.amazon.mShop.android.shopping",
"url": "https://www.amazon.com/s?k=por+controle+de+videogame"
}
}
},
"IOS_APP_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "id297606951",
"url": "https://www.amazon.com/s?k=por+controle+de+videogame"
}
}
}
},
"prompt": {
"topic": "See search results for por controle de videogame.",
"directLaunchDefaultPromptBehavior": "SPEAK"
}
}
}
OR
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.LinkApp/2",
"input": {
"links": {
"GOOGLE_PLAY_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "com.amazon.mShop.android.shopping",
"url": "https://www.amazon.com/gp/css/order-history/"
}
}
},
"IOS_APP_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "id297606951",
"url": "https://www.amazon.com/gp/css/order-history/"
}
}
}
},
"prompt": {
"topic": "Seu link da amazon",
"directLaunchDefaultPromptBehavior": "SPEAK"
}
}
}
THE RESPONSE
{
"type": "SessionResumedRequest",
"requested": "....",
"timestamp": "...",
"locale": "pt-BR",
"cause": {
"type": "ConnectionCompleted",
"status": {
"code": "400",
"message": "Request is not valid."
},
"result": {
"primary": {
"errorCode": "INVALID_REQUEST",
"status": "FAILURE"
}
}
}
}
I'm using Android 11
Alexa App version: 2.2.416206.0 and 2.2.416420.0
Alexa App Hostname: alexa.amazon.com.br
and Echo Show 5 (version 5738696836)
My skill.json
"appLink": {
"linkedApplications": [
{
"catalogInfo": {
"identifier": "com.iaradigital.lanchonete",
"type": "GOOGLE_PLAY_STORE"
},
"customSchemes": [
"lanchonete://"
],
"friendlyName": {
"default": "Minha Lanchonete"
}
},
{
"catalogInfo": {
"identifier": "id297606951",
"type": "IOS_APP_STORE"
},
"friendlyName": {
"default": "Minha Lanchonete"
},
"customSchemes": [
"lanchonete://"
]
}
],
"linkedWebDomains": [
"www.amazon.com"
],
"linkedCommonSchemes": {
"IOS_APP_STORE": [
"MAPS",
"TEL"
],
"GOOGLE_PLAY_STORE": [
"MAPS",
"TEL"
]
},
"linkedAndroidCommonIntents": [
{
"intentName": "SHOW_IN_MAP",
"catalogType": "GOOGLE_PLAY_STORE"
}
]
}
index.js
let links = {
GOOGLE_PLAY_STORE: {
primary: {
"CUSTOM_SCHEME": {
"appIdentifier": "com.iaradigital.lanchonete",
"uri": "lanchonete://"
}
}
}
};
return handlerInput.responseBuilder.addDirective(createAppLinkSkillConnection(links, "abrir lanchonete."))
.getResponse();
I am getting the following error:
SessionResumedRequest received status code : 400 and message : CUSTOM_SCHEME doesn't match customSchemes in the skill manifest
How do I solve this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.