[英]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?
They do have different UA, just a quick google search: 他们确实有不同的UA,只是Google的快速搜索:
http://www.enterpriseios.com/wiki/Complete_List_of_iOS_User_Agent_Strings http://www.enterpriseios.com/wiki/Complete_List_of_iOS_User_Agent_Strings
http://www.gtrifonov.com/2011/04/15/google-android-user-agent-strings-2/ http://www.gtrifonov.com/2011/04/15/google-android-user-agent-strings-2/
Also, check my other answer: 另外,检查我的其他答案:
What is the best way to determine iOS 7 Safari user agent? 确定iOS 7 Safari用户代理的最佳方法是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.