chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
712 stars 570 forks source link

Blackberry 10 : Class NfcPlugin cannot be found #46

Closed cosmicnag closed 11 years ago

cosmicnag commented 11 years ago

Hi. Using cordova 2.2.0, on blackberry dev alpha. Followed the steps required :

  1. Added your classes to cordova.2.2.0.jar, and it is showing correctly with jar tf command.
  2. Added to plugins.xml (there is no res/xml/plugins.xml) , there is plugins.xml in the www directory itself.
  3. Added phonegap-nfc.js after webworks and cordova.js

Please help. It works properly in android, but am not getting it to work on BB 10. Thanks in advance.

cosmicnag commented 11 years ago

Update : Tried with cordova 2.3.0, still gettin the same error.

don commented 11 years ago

I don't have a BB10 device so I haven't been able to run this yet.

The BB10 implementation only supports nfc.addTagListener The BB10 implementation is 100% javascript

You shouldn't need to add any files to the cordova jar (that's only for BB7)

You will need to build phoengap-nfc.js from source or include both phonegap-nfc-qnx.js and phonegap-nfc.js in your BB10 code

See https://github.com/chariotsolutions/phonegap-nfc/pull/32 for more info

don commented 11 years ago

Try https://github.com/don/phonegap-nfc-reader

I updated this for BB7 and BB10

The process should be something like

cosmicnag commented 11 years ago

Sorry to be kind of late in seeing your replies. I was able to make it work by using pure webworks apis (with the 'invocation' framework). I know I cant reuse the code in other platforms, but those are already done. Much thanks anyway,