PDA

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



estesbubba
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?

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


Ext.browser.is.WebView

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