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 #174983 is a reply to message #174978] Thu, 28 July 2011 23:53 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/28/2011 5:31 PM, Richard wrote:
> [Please do not mail me a copy of your followup]
>
> "Peter H. Coffin"<hellsop(at)ninehells(dot)com> spake the secret code
> <slrnj32m39(dot)icc(dot)hellsop(at)nibelheim(dot)ninehells(dot)com> thusly:
>
>> On Thu, 28 Jul 2011 09:51:00 +0200, Simon wrote:
>
>>> Is there a sure fire way to dynamically detect mobile apps?
>>
>> No. The user-agent value is what you've got to work with. [...]
>
> Seems like there's an opportunity here for a web service where you
> submit the user-agent on first page view and get back information
> about the mobile device in question (or that its not a mobile device).
> You can then cache this information in a cookie so that subsequent
> page views don't go through the detection service as long as the user
> agent text doesn't change.
>
> That way the painful logic of identifying mobile devices could be
> centralized into a single location and everyone would benefit.

Which only works if they go in through your entry page. But if they've
bookmarked (or clicked on a link) farther into your site, the cookie
wouldn't be available.

So you'd need this information on every page anyway. Why waste a
cookie? It won't be any more accurate and will just add to the amount
of code (i.e. check to see if the cookie exists, and if not, check the
user agent).

Peter's answer is good.

--
==================
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:46:33 GMT 2024

Total time taken to generate the page: 0.04464 seconds