Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instant App fails due to missing android:scheme="http" in Manifest #360

Closed
rai2270 opened this issue Oct 13, 2020 · 1 comment
Closed

Instant App fails due to missing android:scheme="http" in Manifest #360

rai2270 opened this issue Oct 13, 2020 · 1 comment

Comments

@rai2270
Copy link

rai2270 commented Oct 13, 2020

Description

Instant App bundle creation fails due to missing http scheme.

Reproduction

Use Auth0 in app. Create bundle. Push to Play Store. Error message: "You should use both http and https as schemes for your web intent-filters".
Took me a few hours to find out this is related to Auth0 Manifest.
When checking source code I found only "https":
<data android:scheme="https"...

Solution

Please add to Manifest also: <data android:scheme="http" ...

@lbalmaceda
Copy link
Contributor

@rai2270 I was not aware of this requirement, but good to know for future reference.

This SDK declares an intent-filter for handling links that use https and have the verification enabled. This is to support App Links easily out of the box. However, the scheme can be changed via a user-provided parameter (the manifest placeholder), so we can't just add "http" to the default list of accepted schemes as those not using this feature would receive the change and might break their login flow experience. e.g. showing the disambiguation dialog when using custom schemes other than "https".

If you need to accept both https and http I suggest that you override the intent-filter declaration by re-declaring the activity in your manifest. See this section of the readme where it talks about "Alternatively, you can declare the RedirectActivity in the AndroidManifest.xml" for guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants