FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » The prefered way to handle mobile apps?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: The prefered way to handle mobile apps? [message #174985 is a reply to message #174973] Fri, 29 July 2011 06:33 Go to previous messageGo to previous message
Simon is currently offline  Simon
Messages: 29
Registered: February 2011
Karma:
Junior Member
On 2011/07/28 02:39 PM, Peter H. Coffin wrote:
> On Thu, 28 Jul 2011 09:51:00 +0200, Simon wrote:
>> Hi,
>>
>> I would like to display my front page diferently for mobile users, (as
>> well as a few other pages).
>>
>> I see on the web that there are various scripts to detect mobile apps,
>> (from the user agent).
>>
>> But from experience those quickly get out of date or are simply buggy
>> and return some false positive.
>>
>> So my questions are simple, (I think).
>>
>> Is there a sure fire way to dynamically detect mobile apps?
>
> No. The user-agent value is what you've got to work with. Mostly, Real
> Developers handle this by spending no small amount of time reading
> documentation, experimenting, and testing with new devices and new OS
> releases for those devices. People without a development budget adequate
> for this kind of testing have to get by via reading the same doco, and
> following discussions between those people that do that kind of testing
> comparing notes. And, if one doesn't feel like sitting on one's hands
> during those discussions, fixing the bugs in the detection routines
> using the information others collect is a perfectly valid contribution.
>

Thanks for that.

Truth be told, my 2 main concerns are
1) false positves.
For example, Mobile_Detect
(http://code.google.com/p/php-mobile-detect/), a very brief look at the
bug list shows a fair amount of false positves.

2) The time spent at every page load to look if this is a mobile or not.

In the end, I might settle for $_SERVER['HTTP_X_WAP_PROFILE'] and/or
$_SERVER['HTTP_ACCEPT'] (wap)

Thanks all

Simon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *WHAT IS ISLAM ?*
Next Topic: Sort an array by value type. Where do I start :)??
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 22:08:53 GMT 2024

Total time taken to generate the page: 0.03830 seconds