Git Product home page Git Product logo

Comments (9)

totpero avatar totpero commented on July 23, 2024 2

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.

rlarkin212 avatar rlarkin212 commented on July 23, 2024 1

Came across this problem today use dd.Parse(); and then check if the device is mobile etc, should work

from devicedetector.net.

garrettlondon1 avatar garrettlondon1 commented on July 23, 2024 1

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.

totpero avatar totpero commented on July 23, 2024

Hi @sremiger1 , is this solved?

from devicedetector.net.

scottremigeraccuweather avatar scottremigeraccuweather commented on July 23, 2024

Hi @sremiger1 , is this solved?

No: the device information does not change.

from devicedetector.net.

totpero avatar totpero commented on July 23, 2024

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.

garrettlondon1 avatar garrettlondon1 commented on July 23, 2024

Still persists @totpero

from devicedetector.net.

totpero avatar totpero commented on July 23, 2024

Hi @garrettlondon1,
Can you give me some usergaents example for testig?
Or is ok this from issue?

Thaks

from devicedetector.net.

totpero avatar totpero commented on July 23, 2024

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)

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.