react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

isIPad13 not working

Open Barney241 opened this issue 5 years ago • 3 comments

isIPad13 returns false when using ipad pro with Safari 13.1.3 - Ipad. But its working on ipad mini

this is data from deviceDetect() browserFullVersion: “13.0.1” browserMajorVersion: “13" browserName: “Safari” engineName: “WebKit” engineVersion: “605.1.15” isBrowser: true osName: “Mac OS” osVersion: “10.15” userAgent: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15

Barney241 avatar Dec 08 '20 12:12 Barney241

This will fix the issue https://github.com/duskload/react-device-detect/pull/127

Baruchma01 avatar Jan 01 '21 15:01 Baruchma01

Having the same issue. iPad will be on latest IOS (version 14) but react-device-detect will still show osVersion: 10.15.6

corncobb avatar Apr 12 '21 20:04 corncobb

hey @corncobb use this const ios14Ipad = nav && nav.platform && (nav.platform.indexOf(type) !== -1 || (nav.platform === 'MacIntel' && nav.maxTouchPoints > 0))

Baruchma01 avatar Apr 13 '21 13:04 Baruchma01