detect native/stock Android browser User Agent string via PHP
I use the Mobile_Detect library to check for OS, devices and browsers, however it does not support detecting the native Android browser.
There are numerous posts on SO regarding this topic, but not answer it would seem.
I am getting a lot of errors stating:
...so I would like to switch jQuery Mobile page transitions off for this browser - but I need to have the ability to detect it first.
Cannot set property 'webkitTransitionDelay'
Cannot set property 'webkitTransform'
Is there a way to detect it? I must stress it's not the OS I want to detect, it's the native browser (also called Android).
You can look at $_SERVER['HTTP_USER_AGENT'] and to some pattern-matching against it.
One of the problems I have is that I don't actually know the pattern i'm looking for. I could quite easily do a preg_match on the User Agent string if I knew what the UA string was for the Android Native browser, but I would say that the Android documentation is just as bad as Apple's - non-existant!
Originally Posted by NogDog
I was hoping there would be a "Android Native" or something similar in the UA, but from what i've found online it seems to be "Android" - which could be the OS or it could be the browser. So not much use there, really.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread