Developing a BlackBerry10 App with Cordova 3.0.0 ------------------------------------------------ So, I started by downloading all the appropriate developer SDKs from BlackBerry. Though in retrospect I suppose I only needed the webworks one. After downloading and installing those. I followed the instructions ensuring that I had nodejs installed, and performed an installation of cordova. I performed the create app which went fine. I decided first to test run iOS given that I live in an OSX world. I added iOS, made a couple tweaks and ran it in the simulator flawlessly. Awesome experience. On to BlackBerry. I first attempted to add the blackberry platform. It responded with no platform. Since I knew a handful of stuff that Gord had been working on for BlackBerry builds I attempted, qnx, playbook, bb10, and then blackberry10 that seemed to be the golden key. After getting the platform set, I decided to experiment a bit. I ran the build, and understood how it pulled over the www folder data to the platforms. I had a couple issues with this though. It seemed that any custom writing I had done in the platform itself (blackberry10) was overwritten, including the config.xml which meant if I did an upgrade to the www directory even changed the file config.xml with new name etc it overwrites the custom stuff I set in the blackberry10 platform, with default values of 'WebWorks Application' etc. So I set some details such as name and author and then added some text to the index.html page of the www directory for the blackberry10 platform directory. Then I decided to test run it on a blackberry device. Since I had previous experience doing this, I got my debug tokens and got all that set by following the instructions on BlackBerry's website. This hit a snag in that it appeared I had used a short password. BlackBerry's website says that the csjpin must be between 6-10 alphanumeric characters. But it then turns out that WebWorks needs at least 8 alphanumeric characters. That was a pain, and lots of wasted time but I got through that. I didn't even bother installing the blackberry emulator since my previous experience with it sucked, I decided to try it on a real device. I had all the tokens in place and attempted to do a build with the instructions on the blackberry website. That failed with no signing password provided statement. I did some digging very confusingly since I had set all those details with my signing keys etc according to the blackberry website. I messaged the mailing list in the end, where Fil helped me out by suggesting I run the cordova run command. cordova -d run blackberry10 I had no idea there was such a command since I had been following the CLI instructions on Phonegap's website, and didn't see that anywhere. I attempted that and it failed same statement of the no signing password provided. I was all the more confused, read everything scoured stackoverflow, and finally posted again to the mailing list, and got a response from Jeffrey Heifetz talking about the %home%/.cordova/blackberry10.json. Just before I got Jeff's response I had decided to try upgrading my version of Cordova. According to: cordova -v I had cordova 3.0.0rc1 which was not giving me any information about the blackberry10.json file I had to modify. After performing: sudo npm update -g cordova It stated I now had 3.0.0 I attempted the cordova -d run blackberry10 again and this time I saw the %home%/.cordova/blackberry10.json statement. I went to the file immediately and added the "keystorepass" that I had used in my debug token. Called the run command and bam the app uploaded to the device. I was elated. I can honestly say I am stupefied as to how awesome the CLI is for Cordova everyone! I was amazed at how fast I could get something put together. However, documentation is still lacking, in particular with blackberry10. It was quite confusing for a relative outsider. I'm happy to fork the documentation and work on any inconsistencies/ issues I can help with. On 20 July, 2013 at 9:17:46 PM, Filip Maj ([email protected]) wrote:
|
- blackberry10 build Matt Lantz
- Re: blackberry10 build Filip Maj
- Re: blackberry10 build M. Lantz
- Re: blackberry10 build Matt Lantz
- Re: blackberry10 build Matt Lantz
- Re: blackberry10 build Jeffrey Heifetz
- Re: blackberry10 build M. Lantz
- Re: blackberry10 build Filip Maj
- Re: blackberry10 build Matt Lantz
- Re: blackberry10 build Anis KADRI
- Re: blackberry10 build Lucas Holmquist
- Re: blackberry10 build Bryan Higgins
- Re: blackberry10 build Bryan Higgins
- Re: blackberry10 build Brian LeRoux
- Re: blackberry10 build Ken Wallis
- Re: blackberry10 build Ken Wallis
- Re: blackberry10 build Ken Wallis
- Re: blackberry10 build Matt Lantz
- Re: blackberry10 build Lorin Beer
