AhsanAyaz / ngx-device-detector

An Angular v7+ library to detect the device, OS, and browser details.
https://ahsanayaz.github.io/ngx-device-detector
MIT License
520 stars 101 forks source link

It is not always accurate on tablet devices, isMobile returns true on this tablet. #180

Closed khayargoli closed 3 years ago

khayargoli commented 3 years ago

hi there,

It is not always accurate on tablet devices, isMobile returns true on tablet while isTablet returns false. I am using ngx-device-detector version: "1.4.5" See screen shots and device information:

Device information is also in the screenshot. Tablet is of model Huwaei: MediaPad m5 lite 10 android version 8.0.0 1 s 3

BibiSebi commented 3 years ago

Hello @biswas123 I have also encountered this issue with the following user agent string: "Mozilla/5.0 (Linux; Android 9; SM-T865) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36". It is Samsung Galaxy Tab 6 and it is recognized as a mobile device.

khayargoli commented 3 years ago

Yes, please help!

khayargoli commented 3 years ago

@Sebi2909 @ANahr @staticint @Gailbear

AhsanAyaz commented 3 years ago

@biswas123 we need to add the UserAgent to our regexes. Share the UserAgent string please

BibiSebi commented 3 years ago

@AhsanAyaz thank you for replying. The user agent string from @biswas123 can be found in the second screenshot. I have tried to update the regex myself but then I realised it is not permitted to push.

khayargoli commented 3 years ago

@AhsanAyaz yes please use the regex from second screenshot

khayargoli commented 3 years ago

HELLO GUYS ANY HELP!!! ??????????