admin管理员组

文章数量:1123699

I am aware that there is an intent.resolveActivity(...) method in android that checks if the intent can be handled by the device. I am trying to open an app using the browser that will send an intent url of the form intent://example#Intent;scheme=foo;end is there any way to check this in a browser window using javascript/typescript

I am opening the intent using the window.open call but it seems the return value of the call only depends on whether a new window was opened or not and not if the url was correct or not,
If the app is not installed on the device, then I get a net::ERR_UNKNOWN_URL_SCHEME error in the browser window which I don't want, the App not found should be shown on the website itself

Thanks in advance.

本文标签: javascriptIs there a resolveActivity() equivalent for opening applications from browserStack Overflow