Auto Login To Android Webview

Topic summary

A developer is seeking a way to automatically log users into their Shopify store within an Android app’s webview. They already create Shopify accounts automatically when users sign up for their app.

Attempted Solutions:

  • Tried using Shopify’s Multipass feature, but it requires a Shopify Plus plan which they cannot afford
  • Attempted passing an access token via the X-Shopify-Customer-Access-Token header through the Mobile Buy SDK when loading the URL, but this approach didn’t work

Suggested Workaround:
Another user (@gr_trading) proposed passing login credentials in the webview URL and using JavaScript code to automatically fill the login page input fields and trigger the login button.

The discussion remains open with no confirmed resolution yet.

Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

We have an Android app that has a webview that hosts our Shopify store.

We automatically create a Shopify account for the user when they signup to our app.

Is there anyway to automatically log in the user to our webview? I have tried creating an access token through the Mobile-Buy-SDK and passing it through the X-Shopify-Customer-Access-Token header in the URL load, but this doesn’t seem to work.

The multipass require store to be shopify plus plan, but we can’t afford it now.

Hi @zhaimingxin

You can pass the login credentials in webview url and write javascript code in theme.

Which will auto fill the input field of login page and fire the login button.