mobile_browser returning "MSIE" on desktop?
Posted: Sun Jul 13, 2014 2:00 pm
Hello,
I'm trying out the cloud server, free edition. I intend for my web server to send a mobile version if a phone is detected, and the full version for a desktop, laptop, or tablet. Pretty standard.
But, just using is_smartphone and is_tablet wasn't enough, because my BlackBerry 8530 didn't trigger either of these. So, I added mobile_browser, and this worked. My logic is this: my site will default to the full version, but if anything comes back for is_smartphone or mobile_browser, it will send the mobile version, unless is_tablet is set, in which case it sends the full version. I have tested it on many computers and devices, new and old, and it's worked well.
But, I found that on Internet Explorer 5.0 on Windows 98, which sends User-Agent string "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)", it comes back with "MSIE" for mobile_browser. Is this a mistake, or am I misinterpreting what mobile_browser is supposed to be?
Thanks.
Jeffrey Fox
I'm trying out the cloud server, free edition. I intend for my web server to send a mobile version if a phone is detected, and the full version for a desktop, laptop, or tablet. Pretty standard.
But, just using is_smartphone and is_tablet wasn't enough, because my BlackBerry 8530 didn't trigger either of these. So, I added mobile_browser, and this worked. My logic is this: my site will default to the full version, but if anything comes back for is_smartphone or mobile_browser, it will send the mobile version, unless is_tablet is set, in which case it sends the full version. I have tested it on many computers and devices, new and old, and it's worked well.
But, I found that on Internet Explorer 5.0 on Windows 98, which sends User-Agent string "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)", it comes back with "MSIE" for mobile_browser. Is this a mistake, or am I misinterpreting what mobile_browser is supposed to be?
Thanks.
Jeffrey Fox