Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-14-2013 05:21 AM
I'm trying to play a bit with phonegap 2.5 just to understand how it works with BB10..apart from the basic steps, I still do not understand what I need to do in case I am required to create a custom plugin..,according to the documentation, it seems the reference language is Java, but as far as I know, native extensions for BB10 need to be developed in C++ and I strongly suspect Java is for older BB version (Torch,etc)
Even if I dig into the example project that is located inside the Phonegap zip archive, I cannot figure out how extensions can be made.
Can anyone help me on this?
Thanks a lot
Solved! Go to Solution.
03-14-2013 09:59 AM
We're working on alignment with cordova (the open source project behind PhoneGap). Expect more information on that to be posted soon.
In the meantime, you can build a WebWorks extension and add it to the www folder of your PhoneGap project. There is a template available to get your started here:
03-14-2013 10:12 AM
thanks for your quick reply. In any case, once the alignment is done, I still expect to write extensions in C++..am I right?
As far as I understood, Cordova relies on Webworks which means I have to extend Webworks with the native SDK and JNext in case current APIs are not enough for my purposes. Is that correct?
Thanks again for your time and sorry for my trivial questions, but I cannot completely understand the mechanism behind the covers from the documentation and the code.
03-14-2013 10:25 AM
Yes, you are correct! Once we've aligned with cordova, you will still build native code in the same way but we will allow you to package it as a cordova plugin rather than WebWorks extension.