Sign In View Not Appearing When Calling authorizeUserForScopes
Hi All, I'm implementing Login with Amazon in a blank iOS app for the purpose of authenticating a device with the Alexa Voice Service API. I've implemented the onLoginButtonClicked method and I make my call to authorizeUserForScopes. Unfortunately though, nothing happens. Initially I was getting an error saying that com.amazon.lwa.sso wasn't a registered URL scheme handler. When I was receiving that error, I was actually getting the sign in view to appear. I've since added that to my Info.plist and now the view no longer appears. I'm not totally sure if I've added that URL scheme incorrectly or if there's something else wrong. Any help or direction would be appreciated! Thanks, Tim
For future reference, my issue turned out to be passing an incorrect value for my product id as it was defined in my alexa device configuration under device type id. Once I got that straightened out, I received a successful API Result.
So, I removed the registered URL scheme for com.amazon.lwa.sso from my URL Types in the Info.plist. I'm at least again getting the sign in view appearing again. Unfortunately, I go through the login process, when I click "I Agree" to authorize my app, I'm then brought to a "We're Sorry!" page that states "An error occurred when we tried to process your request." Then I'm dead in the water. If I check my "Manage Login with Amazon" for the account I used to authorize, I don't see an entry for my app.