Comments (4)
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.
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.
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.
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)
- Difference between MobileDetect.phone() and MobileDetect.mobile() HOT 1
- OnePlus 5 not detected as Phone HOT 1
- How to detect if it's mobile and not browser but native apps HOT 1
- IE11 userAgent() doesn't return 'IE' HOT 3
- Does not detect iOS 13 beta HOT 8
- 请问一下调用这个函数的时候出现this.ua is not defined?有遇到过? HOT 1
- Mobile detect is not defined HOT 1
- Not working on safari browser to detect ios devices HOT 1
- Documentation question regarding "warning" HOT 1
- floating number wrong: md.version("iPhone") HOT 1
- Unable to detect iPad running iOS 13 HOT 6
- Update device list HOT 1
- cannot detect iPad Pro (iPadOS) HOT 2
- does not identify iPadOS on iPad mini HOT 4
- Add Miui detection support HOT 1
- Samsung Fold devices are not being detected in mobile devices. HOT 1
- [NEW] Detect Device Details with Detective API HOT 6
- update Mobile detect to smth from 2.8.41
- Getting Invalid value when using this this.md().tablet() ==> SkkTablet
- The OS of the system cannot be obtained!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-detect.js.