I’ve recently launched a web app written in C#/.net 4.0 making extensive use of jQuery & jQuery UI to give the best possible user experience.
However some users have reported problems when using the site through an iPhone or Android devices.
What is the best accepted method of detecting both iOS and Android? so that I can then tweak the UI for each browser.
Generically speaking, you should detect the browser server side, and then render the correct templates/viewport to the browser. Check the user agent string sent to the server, by the browser – iOS generally contains the substring, “iPhone” and Android uses “Android” followed by the version number (“Android 2.2”)