Open emmettbutler opened 7 years ago
There are also 2 more models which are shown as tablets.
Samsung-SGH-I527, with this user agent Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; SAMSUNG-SGH-I527 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30 FB_IAB/FB4A;FBAV/104.0.0.17.71;
Samsung-SPH-L600 Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; SPH-L600 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30 FB_IAB/FB4A;FBAV/85.0.0.15.70;
I debugged function parse in parsers, the problem is that there is no 'Mobile' in user agent, before Safari, so this automatically becomes tablet. I thought that this could be related with screen size and resolution. They are 6.3 inches.
Another user agent shown as a tablet that should parse as mobile:
Dalvik/2.1.0 (Linux; U; Android 7.1.2; Nexus 6P Build/N2G47O)
Attached is a txt file of multiple mobile user agents that are incorrectly being parsed as tablets. Misclassified_Mobile_UserAgents.txt
The S6 should be identified as
mobile
instead oftablet
. From my read of the code, it looks like_is_android_tablet
could use some updates.I discovered this while investigating this issue on Parse.ly's open source Android SDK.