title: How to detect an in-app browser in iphone and android?
body: <p>I'm working on a mobile site right now. But it performs a little bit different in a normal mobile browser and an in-app browser(when you scan the QR code or click a link in a social network app, for example). I use <code>navigator.userAgent.match(/ipad|ipod|iphone|android/i)</code> to detect mobile site and run corresponding javascript function, so I guess maybe this detection method doesn't work in in-app browser. Is there a universal way to detect all the mobile browsers including in-app one?</p>