chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 556 forks source link

Cannot use the plugin without ionic-native #334

Closed KostasGeor closed 4 years ago

KostasGeor commented 5 years ago

I am trying to run the phonegap plugin without using the ionic-native. The problem is that I declare in my home.ts file variables (cordova:any, NFC:any) but none seems to work and I cannot call any function for my NFC App. What should I declare and how shall I use the plugin in order to call a function??

P.s I am using Ionic 3.

don commented 5 years ago

The global variable for the plugin is lowercase nfc (not NFC.)

KostasGeor commented 5 years ago

Thank you very much! :)

Dehfw commented 4 years ago

@KostasGeor can u provide some demo code? (import lib and use a function form phonegap-nfc) I'm struggling at using phonegap-nfc without ionic-native too

don commented 4 years ago

https://github.com/chariotsolutions/phonegap-nfc#sample-projects