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

Can't seem to code against ngx-device-detector in development #156

Closed hhmultimediallc closed 4 years ago

hhmultimediallc commented 4 years ago

Angular Version: 8.2.x This is an awesome tool that seems to be very accurate -- but maybe too accurate :)

The problem I'm having is, I need to be able to code against the deviceService flags (isMobile, isTablet, isDesktop) when using the Chrome devtools viewpoint emulations via desktop. When I'm devtools to simulate a mobile or tablet viewport, the deviceService.isMobile is false and the deviceService.isDesktop flag is true. Now, of course this is technically correct but is there a workaround to this? Great library! Please advise.

AhsanAyaz commented 4 years ago

Not exactly, around simulation, it acts according to the user agent provided by the browser 🙂 . Not much we can do.