javascript - web mobile browser Using js, can you not judge whether the current mobile phone has installed the app? If it is installed, open it. If it is not installed, download it?
The methods on the Internet are not working. I just jump to download and pull. Anyone who has done it has a solution. Please help! ! !
I missed writing it here
var u = window.navigator.userAgent;
That’s why I said u is undefinedYes, let’s move on. Thank you very much. It’s just the beginning. Haha. Are these things included in js? I’m not very familiar with the front desk at the backstage
Reference ios universal link
I have written related articles
Open the app on the webpage
As for judgment:
The webpage cannot judge whether it is installed, but you can write a css animation. If it is transferred to the background, the css animation will not work, so you can judge whether it is opened. app
This agreement is set by the front end of the APP. They write the methods, and then you call their methods and find them to set the agreement
This needs to be configured on the mobile terminal
This technology is called DeepLink