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.