Pick up the Android version in the browser by Javascript

后端 未结 9 1265
小蘑菇
小蘑菇 2020-12-02 05:09

I\'m building a web app and wanting to disable transitions effects on Android devices under version 3.0.

Is there anyway to pick up the Android version number by Ja

9条回答
  •  天涯浪人
    2020-12-02 06:02

    It's better to check first if device is android or not as Windows mobile can have Android in its user agent.

    Example: Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; ; ) AppleWebKit/ (KHTML, like Gecko) Chrome/ Mobile Safari/ Edge/.

    Here is way to check it Detecting iOS / Android Operating system

提交回复
热议问题