View Full Version : Way to detect if running in iOS UIWebView

23 Jul 2012, 9:09 AM
So I've figured out why our applications aren't running in iOS Chrome and Adobe Shadow and I'm guessing it's because they both use UIWebView. I have this config in our apps:

viewport: {
autoMaximize: !Ext.browser.is.Standalone && Ext.os.is.iOS && Ext.browser.version.isGreaterThan(3)

This is because screen space is limited on the iPhone and I want to hide the address bar. Is there another check I can add to this line to check if running in UIWebView?

25 Jul 2012, 4:55 AM
What does this return?


25 Jul 2012, 6:07 AM
Safari, Chrome iOS, and Adobe Shadow all return false for that.