Giter VIP home page Giter VIP logo

skill-sample-alexa-for-apps's People

Contributors

amazon-auto avatar joemocode avatar qideren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skill-sample-alexa-for-apps's Issues

Error during using this repo

  1. During updating manifest skill i got an error
    [Error]: {
    "message": "Server cannot process the request due to a client error.",
    "stack": "ServiceError: Server cannot process the request due to a client error.\n at SkillManagementServiceClient. (/home/suraj/.nvm/versions/node/v17.5.0/lib/node_modules/ask-cli/node_modules/ask-sdk-model-runtime/dist/index.js:335:31)\n at step (/home/suraj/.nvm/versions/node/v17.5.0/lib/node_modules/ask-cli/node_modules/ask-sdk-model-runtime/dist/index.js:58:23)\n at Object.next (/home/suraj/.nvm/versions/node/v17.5.0/lib/node_modules/ask-cli/node_modules/ask-sdk-model-runtime/dist/index.js:39:53)\n at fulfilled (/home/suraj/.nvm/versions/node/v17.5.0/lib/node_modules/ask-cli/node_modules/ask-sdk-model-runtime/dist/index.js:30:58)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)",
    "detail": {
    "name": "ServiceError",
    "statusCode": 400,
    "headers": [
    {
    "key": "content-type",
    "value": "application/json"
    },
    {
    "key": "content-length",
    "value": "575"
    },
    {
    "key": "connection",
    "value": "close"
    },
    {
    "key": "server",
    "value": "Server"
    },
    {
    "key": "date",
    "value": "Wed, 28 Sep 2022 03:13:15 GMT"
    },
    {
    "key": "x-amz-rid",
    "value": "ZZ6ERC72ZE7HXCXCWXGM"
    },
    {
    "key": "x-amzn-requestid",
    "value": "01b852a9-496d-4d3c-af3a-b49860903b57"
    },
    {
    "key": "x-amz-date",
    "value": "Wed, 28 Sep 2022 03:13:15 GMT"
    },
    {
    "key": "vary",
    "value": "Content-Type,Accept-Encoding,User-Agent"
    },
    {
    "key": "x-cache",
    "value": "Error from cloudfront"
    },
    {
    "key": "via",
    "value": "1.1 62e8a6c4e8bc177af56566455e45c7a2.cloudfront.net (CloudFront)"
    },
    {
    "key": "x-amz-cf-pop",
    "value": "DEL51-P4"
    },
    {
    "key": "x-amz-cf-id",
    "value": "RLACXTt7Puhd2NNa9iAJVzkujHwnxioAFtNxflOhSs09j1aSo4wdCw=="
    }
    ],
    "response": {
    "message": "Skill manifest is not valid.",
    "violations": [
    {
    "code": "DENIED_FEATURE_ACCESS",
    "message": "User is not allowed access to the "AppLink V2" feature and, therefore, cannot use string instance with value ""APP_LINKS_V2"" at "$.manifest.apis.custom.interfaces[0].type". Further information: "[email protected]".",
    "validationDetails": {
    "feature": {
    "contact": "[email protected]",
    "name": "AppLink V2"
    },
    "originalInstance": {
    "dataType": "string",
    "propertyPath": "$.manifest.apis.custom.interfaces[0].type",
    "type": "BODY",
    "value": ""APP_LINKS_V2""
    }
    }
    }
    ]
    }
    }
    }
  2. During deploy i got an error
    [Error]: {
    "skill": {
    "eTag": "2cd8e03027fae2e750b3a5be9a44fd6c",
    "resources": [
    {
    "action": "UPDATE",
    "errors": [
    {
    "message": "User is not allowed access to the "AppLink V2" feature and, therefore, cannot use string instance with value ""APP_LINKS_V2"" at "$.manifest.apis.custom.interfaces[0].type". Further information: "[email protected]"."
    }
    ],
    "name": "Manifest",
    "status": "FAILED"
    }
    ],
    "skillId": "amzn1.ask.skill.be688796-a772-44dc-bc38-bfb20f9de694"
    },
    "status": "FAILED"
    }

please try to resolve my issue fast

The WEBSITE_LINK and UNIVERSAL_LINK DeepLink is working on Android?

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)

CUSTOM_SCHEME deep link don't work

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.