06-06-2012 02:56 PM
I am mostly a web developer and have recently programmed a site finder app (gas stations) for andorid and iPhone using PhoneGap, jQuery, jQuery mobile and Google Maps.
Now my client also wanted a version for Blackberry. I should run on the Blackberry Bold 9900 (9930). I thought this would be possible, but reality proofed me wrong up to this point.
I am using a Mac and installed the SDK and Blackberry driver, so that I could test the app on the actual device. There is no emulator for Mac OS. I don't know where to begin, but getting the signing keys was already a quite annoying process and after I got everything working, I was very puzzled, that 111 parts of my app had to be signed online every time sending me 111 emails to my gmail account. luckly I could set up a rule to delte all that **bleep** before it reaches my inbox.
Now for the problemes developing an App: Here are so my nice and well-meant documentation documents and tutorials, but actually most of that stuff does not work correctly:
1. The remote Web Inspector: Even when you just use a "hello world" html or one of the webworks examples (weather) the inspector deas not work. You can connect to the url, but then the webinspector is empty – I found an entry about this problem in this forum, but no answer.
2. It's funny that even the 768MB RAM of the Bold 9900 are not enough to load the Google Maps API and display a map. It works in the Browser, but not in an Webworks app. You know that, and what is the solution? A blog article about lightweight maps (http://devblog.blackberry.com/2012/05/lightweight-
3. I have specified in the config.xml that I can load assets from all domains (<access subdomains="true" uri="*"/>), but I can't load a script using the jQuery.getScript() method, or can I? It seemed to work, when I added another access tag and specified an external domain... but it didn't work with my local testing server (ip as well as .local domain). And now, for whatever reason, it doesn't work at all.
4. Debugging: Without the remote Web Inspector it is impossible to debug the app. I can't see, what goes wrong!
5. Ripple. Ripple is an absolute joke. Regardless it it is the stand alone version or the chrome extension. Who are you trying to fool? The Blackberry OS is using a different version of webkit and it is absurd to rely on testing in this environment. Google Maps works there – of courese, as well as loading external scripts with jQuery and many other things actual device won't do.
6. Testing on the device: Besides the email spamming it also takes forevet to compile and transfer the app... and then, one won't belive it, the Blackberry has to restart every time I want to test a new verison?!
7. Oh, there was one of the well-meant blog entries suggesting setting the content tag in the config.xml to a remote address – clever – but it does not work!
8. I remember that one time I was able to use the remote Web inspector and I even remember seeing google maps crash after viewing the map for half a second. Not much changed in my development environment, but but nothing works anymore...
9. I even tried everything on Windows and with the Blackberry Simulator – but even there nothing worked as expected. The simulator crashes a lot and the remote web inspector won't work either.
10. I really would like to ask some concrete questions and find solutions to make the app I want to develop work (I'm even ready to do a complete rewrite with another map component and without the somewhat bloated jQuery mobile), but right now this whole Blackberry development stuff makes me desperate and hopeless.
How is it possible that is easier to develop webapps for iOS and Android with PhoneGap, which is a third party library, than it is to develop for Blackberrys own web app framework? Why are there so many well-meant efforts to make the platform attractive for developers, when there seem to be some serious problems making anything of that work correctly?
If my client wasn't eager to have a blackberry version of the app I would not waste one more second on this platform. I' can't imagine one person using or developing for a Blackberry phone by choice.
06-12-2012 05:40 PM
I'll do my best to help address the issues below.
config.xml White Listing
Reboot on Load
<?xml version="1.0" encoding="UTF-8" ?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="2.0" rim:header="RIM-Widget: rim/widget"> <name>WAMP</name> <author>Oros</author> <access uri="*" subdomains="true" /> <access uri="http://MYWAMP.SERVER.com" subdomains="true"> <feature id="blackberry.app" /> <feature id="blackberry.app.event" /> ... <feature id="blackberry.ui.dialog" /> <feature id="blackberry.utils" /> </access> <rim:cache disableAllCache="true" />
<content src="http://MYWAMP.SERVER.com" /> </widget>
I just read Point 7 after providing the above, can you elaborate a little as to what does not work? The above has proven quite useful in my development, but perhaps there is something else going on in your environment?
It seems to me that the Web Inspector issue may be the best starting point as, if we can resolve that, we can leverage it to investigate additional issues (like a remote URL not loading when specified in config.xml.)
Would you be able to share the full OS version of the device(s) you are testing on? This can be found under Options > Device > About Device Versions. Also, can you please confirm that you have attempted with:
These would be the best starting points that I can think of. Depending on the state of the above, this can guide additional investigation.
07-28-2012 10:41 PM - edited 07-28-2012 10:46 PM
I have successfully built apps for Blackberry Playbook 2 and BB10 using the Phonegap/Jquerymobile/Ant/Vmware Simulator WebWorks SDK 126.96.36.199 win7 environment
Moving to Web Works SDK 188.8.131.52 /HTML5/JqueryMobile/Ripple for platform OS 6.0,7.0, seemed straight-forward enough and first build of the same app succeeded .However I cannot load ALX to device.I tried manually as well to install cod - no gold.I will try disconnecting both the device 9900 and the win7 desktop from the mobile network.I too was mail-bombed with several hundred web signer verifications In review - build succeeded but cannot load device?
finding my way around the website has been a bit of a challenge. will report back Monday with results of no mobile connection
Device manager 7 imports the alx to a pending state then when clicked there is no green status bar movement.The program refreshes and shows the app in the application loader in a uninstalled state. 9900 OS IS 7..2406 585 PLATFORM 184.108.40.2064
07-30-2012 11:41 AM
If you're connected via USB, I'd recommend giving Javaloader a shot. Example:
javaloader -u load MyApplication.cod
Note that JavaLoader.exe is located in the following folder:
...\BlackBerry WebWorks SDK 220.127.116.11\bin
The command above assumes you are executing it from the bin folder and that MyApplication.cod is also contained in the bin folder. Note that the COD file name is just an example.
Unfortunately I can't speak for the Ant tools directly. Have you tried building with Ripple directly?
07-30-2012 12:39 PM
just posted to community about bb10 webworks and ripple emulator throwing errors regarding password and a missing config.xml file
been using windows ripple 9.0.16 and it works fine
07-31-2012 09:23 PM - edited 07-31-2012 09:24 PM
thanks for your reply.
It must have had something to do with the size of the app which was 5mb for playbook.
I've since reduced to 4mb and loads using the 'ant blackberry load-device' command
and ant uses java loader
as for ripple its a great environment and I look forward to using it for 10 development when the bugs are out.
I downloaded 9.6 emulator but ran into errors ranging from no config file to password errors. So its obviously different from playbook OS.