I'm trying to port one of my Enyo1.0 apps to RIM's Playbook. I read some of the posts here and found some useful tricks but now it seems I stuck. The app gets copied to the simulator and launches but somehow the base enyo object isn't created. Every text I write into the index.html is visible but no enyo app is generated on the screen. Here is the layout of my project folder:
appinfo.json
config.xml
depends.js
framework_config.json
icon.png
index.html
Enyo/framework/...
images/...
source/Wikay.js
source/Wikay.css
depends.js looks like this
enyo.depends(
"source/Wikay.js",
"source/Wikay.css"
);
What could be wrong? And how could I debug it? Attaching the Chrome browser to the simulator port 1337 doesn't show my index.html at all.
0 · ·
Comments
Is "Enyo/framework/..." in proper case? I know iOS specifically requires proper case on all files, but not sure about playbook (had already fixed mine from iOS).
- Spam
- Abuse
0 · Off Topic Insightful ·Also, try to load your index.html from Chrome..
- Spam
- Abuse
0 · Off Topic Insightful ·The only output on the simulator is "Test 1 Test 2". In Chrome it works.
The next thing I will try is to go the remote way as erupnu suggested.
- Spam
- Abuse
0 · Off Topic Insightful ·1st, I used Chrome to try to inspect the app on the simulator, but it doesn't work with Chrome. After using Safari, I could inspect my app and see where it hangs.
2nd, I used setTimeout(this.doRefresh.bind(this), 1000) in my Enyo code. This works in webOS and Chrome but not in the Playbook webkit enviroment. I replaced them with enyo.job("doRefresh", enyo.bind(this, "doRefresh"), 1000); and now it works.
Thank you all for your tips and comments.
- Spam
- Abuse
0 · Off Topic Insightful ·- Spam
- Abuse
0 · Off Topic Insightful ·- Spam
- Abuse
0 · Off Topic Insightful ·- Spam
- Abuse
0 · Off Topic Insightful ·- Spam
- Abuse
0 · Off Topic Insightful ·