Code Monkey home page Code Monkey logo

Comments (4)

hgoebl avatar hgoebl commented on May 27, 2024

This phone should be detected when not using Opera Mini. Please tell me the user-agent string when opening http://hgoebl.github.io/mobile-detect.js/check/ with your Opera Mini.

from mobile-detect.js.

knubew avatar knubew commented on May 27, 2024

The user-agent string is:
Opera/9.80 (Android; Opera Mini/7.6.40234/36.2084; U; de) Presto/2.12.423 Version/12.16

The whole site conten was:

Mobile-Detect Check
(v1.0.0)
This is a small demo to check how mobile-
detect.js behaves with your mobile browser. You
can change the User-Agent to a complete other
one so you can see how that browser would be
detected. Keep in mind that in case of doubt
(phone or tablet) the smaller side of the screen
will be used to distinguish both device classes.
Input
User-Agent:
maxPhoneWidth (-1 to disable)
Result:
phone()
UnknownPhone

tablet()

mobile()
UnknownPhone
os()
AndroidOS
userAgent()
Opera
mobileGrade()
A
smaller side
300
is("AndroidOS")
true
is("Opera")
true
versionStr("Version")
"12.16"
version("Version")
12.16
versionStr("Opera")
"7.6.40234"
version("Opera")
7.640234
versionStr("Opera Mini")
"7.6.40234"
version("Opera Mini")
7.640234
versionStr("Opera Mobi")
"12.16"
version("Opera Mobi")
12.16
versionStr("Safari")
"12.16"
version("Safari")
12.16
versionStr("Presto")
"2.12.423"
version("Presto")
2.12423
versionStr("BlackBerry")
"12.16"
version("BlackBerry")
12.16

from mobile-detect.js.

hgoebl avatar hgoebl commented on May 27, 2024

This is a problem of Opera Mini. It doesn't expose the device specific information (in this case GT-I9100) so. At least former versions of Firefox for Android had the same problem. I suppose when using Android stock browser or Chrome, it should be detected as Samsung Phone. AFAIK this problem cannot be solved.

from mobile-detect.js.

knubew avatar knubew commented on May 27, 2024

Ok, but it was fixed with the new version 1.2.0 and the extend fallback pattern for unknown tablets (http://detectmobilebrowsers.com/). Thanks a lot.

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.