Search code examples
iphonehttpuser-agent

Distinguish between iPhone web browser and iPhone app user agent


What is the best way to distinguish on a server between a request that came from an iPhone through the web browser vs through an iphone with an app written in objective c? What differences do I look for in the user agent string?


Solution

  • I believe user agents from the Safari app start with "Mozilla", while user agents from apps start with the name of the app.