Open JDWaghela opened 4 weeks ago
Hi, can I get a confirmation of the detection result from https://uaparser.dev/?
@faisalman Please find below response from that site in tablets
Samsung Galaxy Tablet S8
{
"ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "123.0.6312.40",
"major": "123"
},
"cpu": {
"architecture": "amd64"
},
"device": {},
"engine": {
"name": "Blink",
"version": "123.0.0.0"
},
"os": {
"name": "Linux",
"version": ""
}
}
Samsung Galaxy Tablet S9
{
"ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "127.0.6533.64",
"major": "127"
},
"cpu": {
"architecture": "amd64"
},
"device": {},
"engine": {
"name": "Blink",
"version": "127.0.0.0"
},
"os": {
"name": "Linux",
"version": ""
}
}
Hello @faisalman, A similar problem has occurred with Galaxy Note 9. Could you please check as well?
The result from https://uaparser.dev is as below.
{
"ua": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36",
"browser": {
"name": "Chrome",
"version": "127.0.6533.103",
"major": "127"
},
"cpu": {},
"device": {
"type": "mobile",
"model": "SM-N960N"
},
"engine": {
"name": "Blink",
"version": "127.0.0.0"
},
"os": {
"name": "Android",
"version": "10.0.0"
}
}
But using ua-parse-js(1.0.38)
, the result is as below(device is empty).
Library version 0.7.30
Describe the bug Samsung Galaxy Tab s8 and s9 are returning empty object in below code const { device } = UAParser(); Therefore we're not able to identified that these devices are tablet, and instead it is behaving like desktop mode.
To Reproduce Steps to reproduce the behavior:
const { device } = UAParser(); console.log(device); // resulting output is {}
Expected behavior It should return device type as tablet
Screenshots
Smartphone (please complete the following information):