-
2 Nov 2011 11:53 AM #1
Answered: Application not launching in UIWebView
Answered: Application not launching in UIWebView
I am developing my first Sencha Touch application. I started with the version 2 preview. My app.js script looks like this.
When accessing the app with Mobile Safari I get all three alerts. However, when accessing the app from a UIWebView embedded in a native application, only get two alerts. I do not get the alert in launch. It doesn't appear that the application object is getting created, or at least the launch function is getting called when the Sencha app is in a UIWebView.Code:Ext.Loader.setConfig({ enabled: true }); alert('flag 1'); Ext.application({ name: 'MyApp', launch: function() { alert('launch'); } }); alert('flag 2');
-
Best Answer Posted by Jacky Nguyen
Disable viewport auto maximizing feature, like this:
Code:Ext.application({ viewport: { autoMaximize: false }, ... });
-
2 Nov 2011 2:31 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Jul 2009
- Location
- Palo Alto, California
- Posts
- 469
- Vote Rating
- 9
- Answers
- 24
Disable viewport auto maximizing feature, like this:
Code:Ext.application({ viewport: { autoMaximize: false }, ... });Sencha Touch Lead Architect
-
3 Nov 2011 6:52 AM #3


Reply With Quote