gpt4 book ai didi

javascript - 有没有办法从 Javascript 检测特定应用程序是否安装在 (Android\iOS) 设备上?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:23:55 31 4
gpt4 key购买 nike

我想在 Safari (iOS) 或 Chrome (Android) 上运行 JS 代码来检测设备上是否安装了 WhatsApp

我玩过:

How to check if an app is installed from a web-page on an iPhone?

https://github.com/hampusohlsson/browser-deeplink

但问题是,如果应用程序安装在设备上 - 浏览器会重定向到该应用程序。我想在“检测阶段”后留在页面上,这可以吗?

最佳答案

经过几个小时的研究 + 咨询了顶级专家,我得出的结论是,没有合法的方法可以在没有如果已安装,浏览器会重定向到该应用。

以iOS为例,有一款应用因为违规被App Store下架:SysSecInfo。例如,该应用设法拉取所有正在运行的进程的列表。

发件人:https://www.sektioneins.de/en/blog/16-05-09-system-and-security-info.html

See https://developer.apple.com/videos/play/wwdc2015/703/ "App Detection" starting at 08:34

During this talk they discuss several APIs used to gather information about processes currently running on your system (around 12:12 in the video) and claimed to have fixed them. However as so often Apple has only partially fixed the problems they claim to have fixed. Therefore they have actually never stopped malicious applications from gathering information about what other applications run currently on your device, but only removed access to detail information that is only relevant for harmless system information tools anyway.

System and Security Info is therefore still able to show the list of running processes and enriches this list with information from the codesigning information including the list of entitlements running processes have.

关于javascript - 有没有办法从 Javascript 检测特定应用程序是否安装在 (Android\iOS) 设备上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37249200/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com