I wanted to open a local app, so I used location.href = ‘xxx://’, but in different environments, the Google browser shows different alerts, one of these alerts has a checkbox for asking users if they want to always open this app, but another one doesn’t have this checkbox.
How can I make them all don’t show that checkbox?
To prevent the checkbox from appearing consistently across different environments when using location.href = ‘xxx://’, you can add the intent parameter to the URL. This parameter helps define the intent of the navigation, which can influence how the browser handles it.
Here’s an example:
location.href = 'xxx://example.com?intent=app';