Last Updated: Nov 13, 2024
Overview
When users register on an Android application, they are sent a verification email with a link that redirects to “my-app://my-app.com/welcome”. This works fine when they click the link from the device where the app is installed, but not if they click on the link from their laptop.
Is there a way to support this workflow?
Applies To
- Workflows
- Android Application
- Email Verification Flow
Solution
Here is the solution:
- In the Auth0 Dashboard, configure the Verification Email Template to redirect to a URL that uses the https scheme (https://my-app.com/welcome).
- Then, set up an intent filter in the application that triggers the application to open when a user visits “https://my-app.com/welcome"” from the browser on a device where the application is installed. NOTE: The custom scheme for the application callback can still be used as a part of the login flow. Please see App Links supports configuring multiple hosts.
- As a part of a web application, host a webpage on “https://my-app.com/welcome"” so that users can be redirected to the browser on any device, regardless of whether the application is installed.