javascript - How to detect an in-app browser in iphone and android? -
i'm working on mobile site right now. performs little bit different in normal mobile browser , in-app browser(when scan qr code or click link in social network app, example). use navigator.useragent.match(/ipad|ipod|iphone|android/i)
detect mobile site , run corresponding javascript function, guess maybe detection method doesn't work in in-app browser. there universal way detect mobile browsers including in-app one?
there user agent string variations in-app browsers. can use detect specific in-app browsers: instance, facebook on both ios , android contains string fbav (possibly short facebook application version?).
a working general solution ios here: detect ipad/iphone webview via javascript
i'm not aware of general solution android.
Comments
Post a Comment