-
12 Nov 2012 11:09 PM #1
White screen when launching sample app from ios 6 home screen
White screen when launching sample app from ios 6 home screen
Hi, still new with sencha touch/architect so I may be doing something wrong. I recently installed Architect 2.1 using touch 2.1 to create a sample/test app. The issue is that it seems to run fine if launched from safari by entering the url but if I bookmark it to the homescreen and launch it from there, all I see is a white screen. I've tried to pinpoint when it fails and it seems that if I add a form field (ie email field) to a container, it just shows the white screen when launched from the homescreen bookmark but seems to display just fine from the browser. Is there something special I have to do with form fields for it to launch properly from the homescreen? It seems to work fine if I just have a basic label and no form fields.
Here's a basic example that fails for me launching from the home screen: Added a container named MyContainer with an emailfield and a label using Architect's ui drag and drop- no extra code or functions. Saved it and it previews fine from the ios browser - bookmark it and launch and all I see is a white screen.
code in app.js:
Code:Ext.Loader.setConfig({ enabled: true }); Ext.application({ views: [ 'MyContainer' ], name: 'MyApp', launch: function() { Ext.create('MyApp.view.MyContainer', {fullscreen: true}); } }); and code in MyContainer.js Ext.define('MyApp.view.MyContainer', { extend: 'Ext.Container', config: { items: [ { xtype: 'emailfield', id: 'myemailfield', itemId: 'myemailfield', label: 'Email', placeHolder: 'email@example.com' }, { xtype: 'label', html: 'test' } ] } });
-
13 Nov 2012 2:33 PM #2
If I switch back to touch 2.0.1.1 seems to work fine but with 2.1 I get the white screen. Anyone know of a workaround with touch 2.1?
-
13 Nov 2012 2:52 PM #3
Might need to copy your app.html over the existing index.html
That's what gets loaded by simulatorPhil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
13 Nov 2012 3:39 PM #4
Thanks Phil for your suggestion. I tried copying over the app.html as index.html but still run into the issue of the white screen when launching from the homescreen. Any other possible suggestions?
Thanks!
-
25 Nov 2012 11:42 PM #5
-
28 Nov 2012 2:22 AM #6
me too.
I got white screen when i add form object.
Can somebody help me?
-
28 Nov 2012 10:15 PM #7
it can be solved
it can be solved
add Requires fields section, it's fine.
-
29 Nov 2012 5:11 AM #8
this post ^ is correct, add all components used in the requires, we had the same issue untill all the proper required items were added to the Requires block.
-
30 Nov 2012 2:02 PM #9
Meaning adding the framework components or simply requiring the other classes in your project.
Ext.form.field.TextView
vs
Myapp.view.DialogPhil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
8 Jan 2013 11:24 AM #10
So there is a bug in Sencha Touch 2.1 which basically ruins packaging and simulating. 2.1.1 has a fix for this. I hear it should be out late this week early next.
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest


Reply With Quote