Can js judge whether there is this app on the phone according to the protocol?

for example, there is a line at the bottom of the phone
to judge whether there is this app, on the phone. If it is not opened, it will be shown to download.
all kinds of gods help me. Thank you, and it is best to have a demo,

.
Apr.01,2021

No, similar requirements have been done before, and there is no perfect solution. Please refer to https://github.com/chenyinkai.


No. This involves environmental problems, and hardware operation detection may need to implement


according to the native code written by the system.

No, JS cannot read local files. How can I know whether an app is installed on the phone

you can take a look at Jinri Toutiao, Zhihu and other web pages opened by Wechat


cannot be judged directly.
now the mainstream practice of opening APP is to go directly to location.href. If it is not installed, the system will not jump out


there are usually two ways to evoke the local app: the APPLink protocol and the Scheme protocol. However, as each major platform has its own limitations, it is necessary to test the compatibility on its own.
probably consists of two steps:
first, try to evoke, evoke success and directly open app
. Second, evoke failure and do callback handling of failure

.

there are many articles on the Internet. Please refer to
https://blog.csdn.net/vM199zk.

.

https://blog.csdn.net/cc20032.
and so on

Menu