Customer Experience in Android/Fire apps

In this section, you will learn about the login flow your customers will experience when they use Login with Amazon within your Android app. The Login with Amazon SDK for Android handles the entire login flow from signing in, to obtaining customer consent, to sharing profile information (if you requested it), to finally redirecting the customer back to your Android app.

Step 1: The Login with Amazon Button

The login flow always begins when your customer clicks a “Login with Amazon” button in your Android app. We recommend placing these branded buttons on your app’s sign in and registration screens. You can also place Login with Amazon buttons in your app’s header or footer to enable a quick way for your customers to login to your app using their Amazon credentials.

LWA button in Android app

For instructions on implementing Login with Amazon buttons, see our Getting Started Guide for Android.

Step 2: The Login Flow

The Login with Amazon SDK for Android will automatically provide each of your customers with one of the login flows below:

  • Single Sign-On (SSO) flow: if the customer is signed into the Amazon Mobile Shopping app on their Android device, or they are using an Amazon-branded device running Fire OS.
  • System browser flow: if the customer is not signed into the Amazon Mobile Shopping app on their Android device, and are not using an Amazon device running Fire OS.

Single Sign-on flow

If your customer is already signed into the Amazon Mobile Shopping app on their Android device when they click the “Login with Amazon” button, they will not be prompted to enter their Amazon account credentials. Instead, the Login with Amazon SDK for Android will recognize the customer’s authentication to the Amazon Mobile Shopping app or the Amazon device, and use that same account information to log them into your Android app. The customer will only need to provide one-time consent to share their profile information with your app (if your app is requesting it).

In SSO flow, a user visits your Android app (A). They click the Login with Amazon button (B) and get redirected to a secure, branded WebView within the Amazon Mobile Shopping app which requests their consent (C) to allow your app access to their profile data. If they have already consented, or if your app is not requesting a scope which requires consent, this step will be skipped. Amazon then redirects the user from the consent screen back to your app (D).

SSO cx flow chart

System browser flow

If your customer is not signed into the Amazon Mobile Shopping app on their Android device, Login with Amazon will redirect them to their system browser and provide them with a secure, branded screen where they can enter their Amazon account credentials to login to your app. After successfully signing in, the customer will need to provide one-time consent to share their profile information with your app (if your app is requesting it).

In system browser flow, a user visits your Android app (A). They click the Login with Amazon button (B) and get redirected out of the app and into a secure, Amazon-branded login screen in their system browser (C). After entering their Amazon account credentials, another secure, Amazon-branded page opens in their system browser and requests consent to allow your app access to their profile data (D). If they have already consented, or if your app is not requesting a scope which requires consent, this step will be skipped. Amazon then redirects the user from their browser window back to your app (E).

System browser cx flow chart
Login with Amazon acknowledgement screen

Step 3: The Login Screen

In system browser flow, the Amazon customer will see the login screen immediately after clicking a Login with Amazon button.

LWA login screen

The Amazon-branded login screen consists of the following:

  • The app name you select when you register with Login with Amazon.
  • A Forgot your password? link the customer can click to reset their Amazon.com password.
  • Fields for the customer to enter in their Amazon.com account credentials.
  • A Show password checkbox the customer can select to display the password they’re typing in. By default, the password will be shown.
  • A Keep me signed in checkbox the customer can select to skip the login and consent screens the next time they visit your app and use Login with Amazon. Instead, the next time they log in to your app they will see an acknowledgement screen (shown above), where they can click Continue to login to your app with their Amazon account credentials.
  • A secure Sign in button the customer can click when they’re ready to authenticate to Amazon using their account credentials. Clicking Sign in will redirect the customer to the consent screen, or to your app, as described in the Login Flows sections above.
  • A Create a new Amazon account button the customer can click to create a new account, then sign into your app.
  • A list of benefits for using Login with Amazon, and a Learn More link the customer can click for more details.
  • Links to the Conditions of Use and Privacy Notice relevant to their usage of Login with Amazon.

If your app requests access to a customer’s profile information (such as their name, email address, or postal code), the customer will be made aware of this via the consent screen.

LWA consent screen

The Amazon-branded consent screen consists of the following:

  • A drop-down list showing the customer’s name in the upper, right corner. Clicking the drop-down arrow will allow the customer to choose another Amazon account to authenticate with.
  • The app name and logo you provide when you register with Login with Amazon.
  • A list of each permission requested by your app.
  • An I agree button the customer can click if they agree to share their information. Clicking I agree will redirect the customer back to your app as described in the Login Flows sections above.
  • A Cancel button the customer can click if they do not agree to share their information. Clicking Cancel will bring the customer back to your app unauthenticated.
  • A Your Account link the customer can click to remove permissions they’ve granted to apps via Login with Amazon.
  • A link to the privacy policy for your app that you provide when you register with Login with Amazon.

Step 5: Success!

After a customer has completed the login flow, they are automatically redirected back to your Android app.