Git Product home page Git Product logo

Comments (9)

jmaitrehenry avatar jmaitrehenry commented on May 26, 2024 1

Exactly, we updated the up to 4.1.0, we need to continue the upgrade to 4.3.1.
I will try to do it next week

from device-detector-js.

Findus23 avatar Findus23 commented on May 26, 2024 1

Just FYI @etienne-martin, @jmaitrehenry:

In case you want to easily test if an issue is also on the upstream php device-detector, you can use my site here:
https://devicedetector.lw1.at

It should always return the detection results from the latest master branch of https://github.com/matomo-org/device-detector.
So if the output there is wrong, then it's a bug in upstream.

from device-detector-js.

sanchezzzhak avatar sanchezzzhak commented on May 26, 2024 1

Mozilla/5.0 (Linux; Android 9; AFTKA Build/PS7255; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.118 Mobile Safari/537.36 cordova-amazon-fireos/3.4.0 AmazonWebAppPlatform/3.4.0;2.0
added to matomo-org/device-detector#6969

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

I just released version 3 with your recent upgrade but it doesn't seem like it fixed #129.

I updated the demo to the latest version and tried with a Chromecast user-agent and it gets detected as Chrome Webview.

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Great, thanks @Findus23

from device-detector-js.

dseeker avatar dseeker commented on May 26, 2024

I'm having problems with latest FireTV 4k Max detected as a phone, seems the latest version has a fix for it, is this close to release?

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Are you getting the correct result when using this site https://devicedetector.lw1.at ?

from device-detector-js.

dseeker avatar dseeker commented on May 26, 2024

no, I've copied the Amazon Fire TV 4k max user agent from the web app and using an emulator it's detected as a phone
image

here's the commit that fixes this issue which many of our customers are complaining about
matomo-org/device-detector@5d1fa40

here's the user agent so you can test (edited, corrected)
Mozilla/5.0 (Linux; Android 9; AFTKA Build/PS7255; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.118 Mobile Safari/537.36 cordova-amazon-fireos/3.4.0 AmazonWebAppPlatform/3.4.0;2.0

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

The latest version of matomo works fine with this user-agent:

Gibbon/2020.2.2.0/2020.2.2.0: Netflix/2020.2.2.0 (DEVTYPE=NFANDROID2-PRV-FIRETVSTICK2018; CERTVER=0)

Found it in their test fixture.

I haven't looked at the new regex introduced by matomo-org/device-detector@5d1fa40 to see what could cause yours to fail.

Even if we were to update the library with what's currently upstream, the user-agent you provided would still fail so you can report the issue at https://github.com/matomo-org/device-detector/issues if you think there's something wrong with the detection of that user-agent.

Once the issue is fixed upstream, we'll be able to pull these changes into the library. No guarantee that this will be done quickly however.

from device-detector-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.