ua-parser-js icon indicating copy to clipboard operation
ua-parser-js copied to clipboard

ios specific mobile user-agent does not working.

Open Inhye-Cheong opened this issue 2 years ago • 0 comments

Android's test case passes, but ios doesn't work. I want to know the device and os information of ios. Am I using this library something wrong?

Test Case

const iosTest = 'ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION'
const andTest = 'Android/SM-A516N/10/SOME_CUSTOM_APP_VERSION/'

const uaForIos = new UAParser(iosTest).getResult() // not working
const uaForAnd = new UAParser(iosTest).getResult()

Result

image

ua-parser-version

"^0.7.22" / "^0.7.28", -> Both versions are reproduced.

Inhye-Cheong avatar Sep 03 '21 04:09 Inhye-Cheong