Comments (9)
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
* not recognized as Mobile client
Hi @garrettlondon1 your problem is because you don't call Parse
method before IsMobile
. Look the @rlarkin212 comment.
Try like this:
DeviceDetector dd = new DeviceDetector(userAgent);
dd.Parse();
return dd.IsMobile();
Thanks for your feedback π
from devicedetector.net.
Came across this problem today use dd.Parse();
and then check if the device is mobile etc, should work
from devicedetector.net.
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
- not recognized as Mobile client
from devicedetector.net.
Hi @sremiger1 , is this solved?
from devicedetector.net.
Hi @sremiger1 , is this solved?
No: the device information does not change.
from devicedetector.net.
Hi @sremiger1 , @rlarkin212 , @scottremigeraccuweather, can you try with last release 4.3.0 and see if this problem persist? If persist, fell free to reopen this issue
from devicedetector.net.
Still persists @totpero
from devicedetector.net.
Hi @garrettlondon1,
Can you give me some usergaents example for testig?
Or is ok this from issue?
Thaks
from devicedetector.net.
Hi @sremiger1 , @scottremigeraccuweather ,
For this issue:
The IsMobile does not detect IPhone 7 Software 12.4.1 Safari 13
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15
If you try the original repo online test page this say that "isMobileOnlyBrowser": false
:
https://devicedetector.lw1.at/Mozilla%2F5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15)%20AppleWebKit%2F605.1.15%20(KHTML,%20like%20Gecko)%20Version%2F13.0.1%20Safari%2F605.1.15
And for this issue:
This does not detect the IPAD Air 2 with Safari
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15
The same for this, if you look online:
https://devicedetector.lw1.at/Mozilla%2F5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15)%20AppleWebKit%2F605.1.15%20(KHTML,%20like%20Gecko)%20Version%2F13.0.1%20Safari%2F605.1.15
If online is not the result what you aspect then you need to write issue to the original php version because possible is regex problem.
Thanks for your feedback π
from devicedetector.net.
Related Issues (20)
- Package 4.2.0 contains tests HOT 1
- Updating regexes from the PHP project now produces runtime errors HOT 3
- Slow Initial Parse HOT 4
- Plan for Google's deprecation of UserAgent and introduction of new User-Agent Client Hints HOT 4
- Update device model database HOT 12
- Online test page
- Not detecting Palo Alto Expanse Bot
- Using System.Text.Json HOT 3
- The example for bot detection is incorrect HOT 1
- BUGοΌThe brand with name 'xxx' should be listed in the deviceBrands array HOT 1
- Update minimum version for LiteDB | security vulnerability HOT 2
- Not detecting Safari browser on iPad HOT 1
- Missing Bots detection
- iPhone IOS version not detected HOT 1
- User-Agent string changed in Chrome causing undetectable device HOT 2
- Incorrect device model HOT 1
- Package DeviceDetector.NET.NetCore 3.9.2.2 is not compatible with net60 (.NETFramework,Version=v6.0) HOT 6
- Why version for NET 6.0 requires Logging in version 7.0 HOT 3
- Invalid Device and Brand Name HOT 1
- Microsoft Edge and Brave Browser detected as 'Iridium' HOT 8
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 devicedetector.net.