简体   繁体   中英

Launching Android App from through url from Chrome browser

I wish to open android app on click of the url .

The idea is the link will open in browser and look for the package and launch the application or redirect to app store.

From the Chrome documentation , i can see that we cannot launch app directly without user interaction.

Is there any way we can achieve this functionality.

I took implementation from this

https://github.com/danielgindi/app-redirect

This works but from the diclaimer mentioned copying the link in chrome browser does not launch the app.

https://developer.chrome.com/multidevice/android/intents

And Chrome doesn't launch an external app for a given Intent URI in the following cases.

When the Intent URI is redirected from a typed in URL. When the Intent URI is initiated without user gesture

Do you know about Firebase Dynamic Links? See here if this is what you are searching for: https://firebase.google.com/docs/dynamic-links/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM