willblaschko / AlexaAndroid

A library and sample app to abstract access to the Amazon Alexa service for Android applications.
GNU General Public License v2.0
280 stars 133 forks source link

This site can't be reached amzn://com.....android.alexavoicelibrary? #132

Open PikkaPikkachu opened 6 years ago

PikkaPikkachu commented 6 years ago

Whenever I try to login through amazon I get this error that the site can't be reached. The website might be temporarily down or it may have moved to a new address. ERR_UNKNOWN_URL_SCHEME. Is there a way to get out of this problem? Thanks for any help!

bmac901 commented 5 years ago

Fix your app's AndroidManifest.xml. The AuthorizationActivity is where you need to make the change.

<!-- required so we can get back the result of our authentication //-->
<activity android:name="com.amazon.identity.auth.device.authorization.AuthorizationActivity"
    android:allowTaskReparenting="true"
    android:launchMode="singleTask"
    android:theme="@android:style/Theme.NoDisplay" >
    <intent-filter>
       ...
        <!-- host should be our application package //-->
        <data
            android:host="com.yourpackage.name"
            android:scheme="amzn" />
    </intent-filter>
</activity>