Code Monkey home page Code Monkey logo

Comments (6)

hgoebl avatar hgoebl commented on May 28, 2024

Thanks. Can you tell me the phone types? (Vendor, Model)

from mobile-detect.js.

peanutlord avatar peanutlord commented on May 28, 2024

We don't know all the types, since we pulled those user agents from our log files, but it seems to be a problem with Sony Xperia Z3 and Z5.

from mobile-detect.js.

hgoebl avatar hgoebl commented on May 28, 2024

Sorry, without concrete information I can't do anything.
@serbanghita, how do you process in such cases?
@peanut-lord, the source for the regexs for device detection are in https://github.com/serbanghita/Mobile-Detect

from mobile-detect.js.

peanutlord avatar peanutlord commented on May 28, 2024

The PHP library detect's those string correctly, we get a true for isMobile()

from mobile-detect.js.

hgoebl avatar hgoebl commented on May 28, 2024

The js library detects this device as UnknownTablet or UnknownPhone, depending on screen size. Server-side (without screen size) it is detected as UnknownMobile (mobile() is truthy).

@serbanghita the new Sony Z5 Compact (E5803, E5823) is missing in the phone-section:

http://developer.sonymobile.com/downloads/whitepapers/xperia-z5-compact-e5803-and-e5823-white-paper/

This device has a relatively large market share (when looking at Sony, not compared to some Samsung devices).

from mobile-detect.js.

hgoebl avatar hgoebl commented on May 28, 2024

mobile-detect is just a kind of "satellite"-project. It uses the RegEx patterns of
Mobile-Detect and generates JavaScript source code
based on the code of its "mother"-project.

Missing patterns for particular devices cannot be added in mobile-detect.js,
instead you have to create an issue in Mobile-Detect.

Please provide the User-Agent string, the manufacturer and the type of device (phone, tablet, tv, bot, ...).

It doesn't make any sense to change generated code. I hope you understand.

from mobile-detect.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.