Firefox device type blank for Android smartphone/tablet
tomzmyslo opened this issue · 4 comments
tomzmyslo commented
When using DeviceDetector with Firefox on Android, the Mobile vs Tablet flag isn't registering to show the device type.
peteygao commented
Can you post the user agent that you're trying to detect? Otherwise we can't really debug it (I don't have an Android device to repro).
tomzmyslo commented
Here's the user agent from Firefox 47 on a Nexus 7 tablet:
Mozilla/5.0 (Android 6.0.1; Tablet; rv:47.0) Gecko/47.0 Firefox/47.0
sliminas commented
I encountered the same problem with Mozilla/5.0 (Android 7.0; Mobile; rv:53.0) Gecko/53.0 Firefox/53.0
The problem seems to be https://github.com/podigee/device_detector/blob/develop/lib/device_detector.rb#L170, where 'Android; Mobile;'
doesn't match Android 7.0; Mobile;
. The same applies to tablets.