bb.pushScreen works in Ripple but not on PlayBook?
Newbie, just trying to get a WebWorks app working to the point of displaying my first screen on the PlayBook.
Very simple starting app, I have the index.html doing bb.init() and bb.pushScreen() as the onload process. Works fine in Ripple, I can see the buttons and such from my pushed screen.
But once loaded onto my PlayBook device however, it won't show anything from the pushed screen. It DOES show anything I put onto the index.html page (just to experiment), but won't show the pushed screen.
Anything duh! I might be doing wrong? I don't get why it looks fine in Ripple, but won't work on my device...
- 12-17-12, 03:43 PM #2
Try to download a github source sample, and try that one. Maybe it is just a line of wrong codes, or BBUI fault.
If this (above) wont work, please send the source code so we can help
For fun, I stuck some popup alerts into bbui.js just to see if things like bb.init and bb.pushscreen were even being called. And they work fine in Ripple, but apparently aren't even being called on the PlayBook. It's as if bbui.js just isn't makinig it onto the PlayBook, or the PlayBook can't access bbui.js scripts.
And yet, it's all in the .zip file after packaging, so I'm assuming everything is in the .bar file that's being deployed. No errors during packaging or deploying. Debug tokens are working.
I'm sure it's something stupid I'm missing as a newbie, but I can't figure it out. I've tried sample apps with the same result. I've moved the bb.init and bb.pushcreen calls around to various places, but it just seems the PlayBook can't call anything from bbui.js.
Found the problem: bbui 0.9.6.10 won't load on my PlayBook, but bbui 0.9.2 in a sample app worked fine. So I just copied bbui 0.9.2 into my little app, and it works fine now too
And now.... on to actually create something useful!
- 12-18-12, 03:37 PM #5
You might want to try the Official 0.9.5 version as it is a recommended build.
It includes a 'new' NATIVE menu, similar to the 'three-dots' on the right side on the 'action bar'
When you've downloaded the 0.9.5 version, install it to your playbook and checkout the new 'Action Bar' features.
Now if I can just figure out how to dynamically add items to a scrollable list (like when populating from a twitter feed, etc.)...
Thanks again for the tips!
If I sprinkle something like alert('got this far') scipts in the code, they all open right up to the call to bb.init() on the PlayBook. After that, no other scripts get executed.
The weird thing is, even going back to a backup of proven project source files doesn't fix it. It just stops working at some point, as if an uninstall didn't properly remove everything or something. Sample apps deploy and run just fine, but I suspect they too might fail after repeated installation/uninstall repetitions.
I've tried various version of bbui as well, and none seem to get it working again.
- 12-19-12, 12:01 AM #8
Which webworks SDK version do you use ? Are you sure you haven't downloaded the BB 10 Webworks SDK ? You need to have the Playbook SDK.
- 12-19-12, 01:53 AM #9
Edit; could you please send over the .bar & the source code of your app ?
I will test the app on my playbook, maybe its just your playbooks software that is a bit corrupted.
I also will post a link soon with a sample of a webworks(BBUI.js) i've created, and that is confirmed to work.
EDIT: this is the app i've created; This is the LaunchScreen
This is how it looks on Ripple, and it looks exactly the same on my playbook.
Last edited by jeroen_13; 12-19-12 at 03:31 AM.
- By kellyjsox in forum BlackBerry Bold 9930/9900Replies: 4Last Post: 08-16-12, 03:07 PM
- By trevinon in forum BlackBerry Curve 8350iReplies: 0Last Post: 04-18-11, 08:07 PM
- By tommyjlang in forum BlackBerry Tour 9630Replies: 1Last Post: 09-22-10, 02:20 AM
- By takumi in forum BlackBerry Curve 8900Replies: 10Last Post: 11-26-09, 01:44 PM
- By chinkster in forum Site News, Feedback, HelpReplies: 17Last Post: 11-16-08, 11:10 AM