0

I have an application that uses the devices default browser to access a URL from the application. Besides sending parameters in the URL is there anyway to tell what application and type of device (android or ios) accessed the browser or requested the URL?

mcphersonjr
  • 733
  • 12
  • 35

2 Answers2

2

Short answer is no. If user just clicks a link, you can pass parameters only in URL. But some of data you requires can be stored in HTTP header by the browser (client), i.e. user agent (browser), or OS

Robert Trzebiński
  • 1,327
  • 8
  • 16
0

Almost all web browsers and the WebView or UIWebView sends information about the OS, device in the User-Agent header. In case of an embedded WebView or UIWebView, the developer can choose to override the value sent in the header. But in the case of the default browser, as you had mentioned, there is no general solution to alter the header value other than configuring it in every browser.

Answering your question, yes, it is possible to figure out which platform (and additionally the device) the request comes from by looking at the User-Agent.

The list of the User-Agent strings can be found in http://www.zytrax.com/tech/web/mobile_ids.html

Rajesh
  • 15,724
  • 7
  • 46
  • 95