Help with Multiple Endpoints!

I have a quick question. I am using the intent-filtering and it is still not working, the domain shows but the Login button freezes. And I know the domain/endpoint is working because when I used it in manifestPlaceHolders I was able to login.

AndroidManifest.xml

<activity android:name="com.auth0.android.provider.RedirectActivity"
            tools:node="replace">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>

                <data
                    android:host="@string/com_auth0_domain_prod"
                    android:pathPrefix="/android/${applicationId}/callback"
                    android:scheme="https"/>

                <data
                    android:host="@string/com_auth0_domain_stg"
                    android:pathPrefix="/android/${applicationId}/callback"
                    android:scheme="https"/>

                <data
                    android:host="@string/com_auth0_domain_qa"
                    android:pathPrefix="/android/${applicationId}/callback"
                    android:scheme="https"/>

            </intent-filter>

        </activity>

And here is the code:

switch (environment) {
                    case QA:
                        mAuth0Account = new Auth0(
                                context.getString(R.string.com_auth0_ts_client_id_qa),
                                context.getString(R.string.com_auth0_domain_qa));
                        break;


                    case Staging:
                        mAuth0Account = new Auth0(
                                context.getString(R.string.com_auth0_ts_client_id_stg),
                                context.getString(R.string.com_auth0_domain_stg));
                        break;

                    case Production:
                        mAuth0Account = new Auth0(
                                context.getString(R.string.com_auth0_ts_client_id_prod),
                                context.getString(R.string.com_auth0_domain_prod));
                        break;
                }

Is there something I am doing wrong? (I am using v2.5.1)

Hey there!

You are using Android SDK from Auth0 right?

1 Like

Yes I am! We have been in contact with Auth0 and everything seemed fine up until this point.

Can you raise it as a GitHub issue then in the repo so we can get that addressed directly by the SDK maintainers? Once you have a link to it you can share it here so we can ping them. Thank you!

I am pretty sure it already is an issue: Android: Ability to dynamically change auth0Domain and auth0Scheme... ??? · Issue #333 · auth0/Auth0.Android · GitHub
Or is this slightly different?

oh perfect! Let me ping repo maintainers in a few minutes then!

I left a comment on that issue for Lucas yesterday …

Thanks for doing that! They’re gonna get back to it for sure as there is also another engineer on this issue. Thank you for your patience and understanding!