iPad version detection in JavaScript

前端 未结 9 787
耶瑟儿~
耶瑟儿~ 2020-12-06 11:12

Is it possible to check for the iPad version (1 or 2) in a web application? As the user agent looks identical (see http://www.webtrends.com/Support/KnowledgeBase/SolutionDet

9条回答
  •  不知归路
    2020-12-06 11:40

    PLS DON'T RELY ON User-Agent STRING INTERPRETATION.

    This is not reliable at all: I can see Mobile/8J2 on iPad2 and Mobile/9A405 on iPad1. So different iOS versions(and thus Safari) alert different UA on the same iPad version.

    We should go with acceleration feature detection only; either client-side or server-side (WURFL acceleration etc...).

提交回复
热议问题