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
517 stars 101 forks source link

Different detection from dev to prod #285

Open aceleghin opened 9 months ago

aceleghin commented 9 months ago

Describe the bug I see different result when I run the service on my application in dev and when the application is in stage/production only when I run it on a tablet. For example if I use an Android tablet with chrome in dev I see everything correct (it is recognized as mobile but is not a problem), but if In stage/prod with the same tablet this is the result:

Screenshots Cattura

Devices:

Additional context No ssr enabled, the only difference is that is stage/prod we use Cloudfront

biel-correa commented 9 months ago

@aceleghin When you test on dev, do you use a physical device or chrome debug options?

aceleghin commented 9 months ago

Is the same

Il mer 6 dic 2023, 15:44 Gabriel Corrêa @.***> ha scritto:

When you test on dev, do you use a physical device or chrome debug options?

— Reply to this email directly, view it on GitHub https://github.com/AhsanAyaz/ngx-device-detector/issues/285#issuecomment-1843027562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGR2JMLYMEOU6QL43P7ZH5LYICAFNAVCNFSM6AAAAAA7MISP4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGAZDONJWGI . You are receiving this because you authored the thread.Message ID: @.***>

AhsanAyaz commented 9 months ago

@aceleghin Can you share the link where I can see this? It seems like the userAgent from wherever you are running it ends up showing not the tablet userAgent for some reason.