Detecting a Mobile Browser on Google App Engine

uastring = self.request.headers.get('user_agent')
if "Mobile" in uastring and "Safari" in uastring:
  # do iphone / ipod stuff
Via stack overflow

Comments

Popular posts from this blog

USCIS Selects Final H1B Petitions by Random Selection - Almost a 50% chance for each Application

H1B 2008:USCIS released Preliminary Numbers

Just Make It Happen. Its 2010.