简体   繁体   English

如何在应用下载页面上区分Android和iOS

[英]How to distunguish between Android and iOS on an app download page

I have the following problem: 我有以下问题:

I'm offering an android and an ios app over a download page, which should automaticly select the right binary for the users platform. 我在下载页面上提供了一个android和ios应用程序,该页面应自动为用户平台选择正确的二进制文件。 Until now I'm parsing the UA-String to detect the platform, but I have many android users with Safari as standard browser which uses exactly the same UA-String like on iOS. 到目前为止,我一直在解析UA-String以检测平台,但是我有许多使用Safari作为标准浏览器的android用户,它使用的UA-String与iOS上的完全相同。

Is there any reliable way for an OS detection over a webpage? 有没有一种可靠的方法可以检测网页上的OS?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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