iPhone homescreen shortcut
I am getting a white screen when running my Sencha Touch 2.1 web app from an iphone home screen shortcut. My test page is a simple tab panel (code below). Everything works fine in iphone safari and from desktop safari. No javascript errors. However, it stops working when run from the home screen icon. I've had success with showing a regular panel and a list from the home screen shortcut. I've had failure (white screen) with the tabpanel and navigationview so far. Anyone else?
Code:
Ext.setup({
onReady: function () {
Ext.Viewport.add( {xtype:'tabpanel',
fullscreen: true,
items: [{
title: 'Test'
}]
});
}
});
What about CSS references
Following on from my post, when I actually applied my own advice to an existing project with more things in it, I discovered that my custom css styles from my Architect project were not working.
Aha I thought - you obviously also need to copy any custom style links in app.html into index.html (which is what the original thread did say viz. "copy the links"). So in my own example, I did that e.g. index.html now has the line
<link rel="stylesheet" href="mycss/css1.css">
but this didn’t work. :-? The resulting index.html app still doesn't see the css1.css and various elements don't look right.
Anybody know what is going on here and how to get my css from architect to be loaded - possibly the microloader isn't seeing it or something?