I am using Auth0 with a native android app. I’ve encountered a problem when minimising the Custom Tab. Here’s a repro:
- User opens auth0,
- Types in the data,
- Minimises the Custom Tab using the dropdown symbol on the left of top app bar,
- Maximises the Custom Tab and clicks login,
- Instead of logging in and closing the tab to go back to the app auth0 flow is blocked.
If user switches the app using home button on Custom Tabs, the flow works correctly.
Hi @wiolettaku,
Welcome to the Auth0 Community!
Please allow me to share a few idea of why you might encounter this behavior, so here are a few key areas that you can take a look at:
- Upgrade to the latest SDK version:
If you are using an older version of the Auth0 SDK, we highly recommend upgrading to the latest release. Older versions required manual activity configurations (singleTask launch modes and custom intent-filters) which are prone to redirect errors. Modern versions of our SDK automate this setup using build-time manifest placeholders, making the integration much more robust.
- Verify the
launchMode configuration:
If you must stay on a legacy version, check the android:launchMode of the callback activity in your AndroidManifest.xml . You can try setting it to singleTask rather than singleInstance or standard since singleInstance isolates the activity into a unique task, which can prevent the system browser from delivering the authentication payload back to your app.
- Check your redirect URI schemes:
Ensure that the Callback URLs registered in your Auth0 Dashboard strictly match the scheme, host, and formatting (fully lowercase, no trailing slashes) used in your Android app . Additionally, if Android App Links (HTTPS) are failing to redirect on certain older Android OS versions, you can try setting up a fallback custom URL scheme (e.g., myapp:// ) to ensure consistent behavior across all devices.
Please let me know if making these adjustments helped, otherwise it could be beneficial if you could share your SDK version or manifest configuration so we can take a closer look!
Best regards,
Remus
Hi @remus.ivan
Unfortunately mentioned instructions haven’t helped. I’m using auth0 sdk in version 3.18.0 on target/compile sdk 35. I’m also using newest Android. I could send reproduction video + logs but I can’t attach them here. The issue happens when CustomTabs Auth0 enters Picture in Picture mode.
Thank you,
Wiola