1

我有以下问题:

I'm offering an android and an ios app over a download page, which should automaticly select the right binary for the users platform. 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.

Is there any reliable way for an OS detection over a webpage?

4

1 回答 1

2

他们确实有不同的 UA,只是一个快速的谷歌搜索:

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/

另外,检查我的另一个答案:

确定 iOS 7 Safari 用户代理的最佳方法是什么?

于 2013-10-02T13:28:47.213 回答