question

Martin avatar image
Martin asked

Account linking Angular JS page load issue

Hi there,

I'm trying to set up account linking on my Alexa skill.

My skill correctly pops up the linking card and then clicking on the "link account" link takes me to my website's homepage.

The page does not load properly though.

It is an Angular JS page and it looks like the Angular JS javascript is not working properly. However, I can't find any way of debugging what the page is actually doing (or not).

The page works fine in a normal browser. I have also used it to do account linking with Google Home with no problems.

The problem I'm having is on my Android Nexus 5 phone via the Alexa app. It is the webview in the Alexa app that I'm particularly having the issue with.

How can I debug this? Or is there something obvious that I should look into?

AFAIK I have also whitelisted all domains that my page is calling.

Many thanks for any assistance,

Martin

alexa skills kitdebuggingaccount linking
10 |5000

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

Martin avatar image
Martin answered

It turns out that my problem is because my page uses localStorage, which is not available in the Alexa app account linking web view. It is undefined so on referencing it the page errors.

The only way I found to debug it was to write out debug statements to the page itself.

10 |5000

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

Brian@Amazon avatar image
Brian@Amazon answered
Thanks for the feedback. I will see if we can specifically add that to documentation.
10 |5000

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