This topic is locked

PHPR 6.0 mobile user agent detection

8/15/2011 4:31:32 PM
PHPRunner General questions
F
FunkDaddy author

Sergey,
I'm wondering what methodology you chose to implement the browser detection for mobile pages. Would you be kind enough to elaborate on your approach and where we can find the files that handle this feature?
The reason I ask is that I need to distinguisj between class A type browsers (iPhone, Android, etc) and lower B & C types (blackberry, Win Mobile, etc) to deliver device specific functionality. Thus, I would like to see what you've implemented, and where so I may take a look at it to see if it'll be of any use for me.
Additionally, I noticed the mobile pages generated by the new version is very heavy weight (to many requestes and large sized Kb includes) and I'm wondering if this is something that will be perfected during the Beta phase. I actually did some heavy hacking to the source windows files back in HPR 5.2 to create mobile enabled web apps and learned a few tricks which basically excluded many of the heavy set JS files and unnecessary html & css in page templates.
Anyhow, main question is where can we find user agent sniffing method.
Thanks,

F
FunkDaddy author 8/16/2011

I decided to create a post under the tips & tricks section for anyone interested in having complete control over the detection of mobile devices (or any other browser type for that matter) to better control what pages are served to their users.
I know the xlinesfot team has included some automated mobile detection, but I think this may be a more comprehensive solution.
Here is the link for my post: http://www.asprunner.com/forums/topic/17558-wurfl-mobile-user-agent-detection-solution/
Cheers,