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 #174986 is a reply to message #174985] Fri, 29 July 2011 12:03 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/29/2011 2:33 AM, Simon wrote:
> 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
>

You can only go so far with the false positives. Unfortunately, it's
not an exact science.

As for every page - you're prematurely optimizing. The amount of time
spent looking should not be significant, and is pretty much required for
all pages (unless you want to lose customers by forcing them to jump
through hoops).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Tue Nov 26 18:20:23 GMT 2024

Total time taken to generate the page: 0.05014 seconds