Skip to content

Conversation

@catalinradoiu
Copy link
Contributor

@catalinradoiu catalinradoiu commented Dec 17, 2025

Task/Issue URL:

Description

This PR improves intent validation logic by considering the package parameter when resolving activities. This is a follow up on the fix implemented in this PR: #7379

When the user is in a custom tab and clicks on a link that has an intent url, if there is no app to handle that intent, we are still considering it as an app link.

This is done because in that case there is a user initiated action and not a redirect. The current logic is not taking that scenarion into consideration. This improves the way this is handled, as instead of showing the error page, it open the google play store for that app.

This covers the edge case when the user is on a webpage that has an intent embeded in a link and the intent has a package but it cannot be handled by any app on the device.

Steps to test this PR

External link handling

  1. Go to Developer Settings and open a custom tab with the following url: https://codepen.io/pen/
  2. In the HTML box paste the following code:
    <button onclick="window.open('intent://open/#Intent;scheme=dd;package=com.airbnb.android;end', '_syste')">Open other APP in STORE</button>
  3. After the button is rendered click on the button
  4. The playstore should be open

UI changes

Before After
before.mp4 (uploaded via Graphite) after.mp4 (uploaded via Graphite)

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@catalinradoiu catalinradoiu changed the title Fix crash in custom tab when trying to open url in ddg app and no activity is found to handle the intent Improve intent:// handling when the user clicks on an intent link Dec 17, 2025
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

Successfully merging this pull request may close these issues.

1 participant