You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to support both Android App Links ("https" scheme) and custom urls for deep linking. The "https" works as expected but the custom url scheme is not intercepted on Android. We have included a custom scheme in strings.xml as follows:
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.
Please see the Contributing Guide for how to create a Sample App.
Thanks! Ionitron 💙
We found out what was causing this issue and we think it is important to point that out in the docs.
When both Universal Links and custom URL schemes are defined, they need to be in separate <intent-filters>. This is because capacitor by default includes an android:autoVerify="true" in its main intent-filter, and custom schemes will not be intercepted unless they are defined in a separate <intent-filter>, without autoVerify.
We believe this is a nuance worth mentioning in the docs.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Capacitor Version
6.1.2
Other API Details
Platforms Affected
Current Behavior
We want to support both Android App Links ("https" scheme) and custom urls for deep linking. The "https" works as expected but the custom url scheme is not intercepted on Android. We have included a custom scheme in
strings.xml
as follows:And in
AndroidManifest.xml
:we have also tried:
However, when we redirect to
myapp://foo
from another Android app or webpage, we are not redirected to the capacitor AppExpected Behavior
Both App Links and custom urls should work, like in v5.
Project Reproduction
(private repository)
Additional Information
No response
The text was updated successfully, but these errors were encountered: