Closed annYang66 closed 6 years ago
I need to document NFC_USAGE_DESCRIPTION. It's for iOS to display to the user when requesting NFC permissions.
If you specify NFC_USAGE_DESCRIPTION when installing the plugin
cordova plugin add phonegap-nfc --variable NFC_USAGE_DESCRIPTION="Scan NFC Tags"
It adds this info into config.xml
<plugin name="phonegap-nfc" spec="^1.0.3">
<variable name="NFC_USAGE_DESCRIPTION" value="Scan NFC Tags" />
</plugin>
I'm not sure what's causing the stack trace. I tried downgrading to cordova@6.3.0 and test on my mac, but the old version won't run without downgrading Gradle.
Suggestions
npm install -g cordova
If you can't upgrade Cordova, see if an older version of the plugin works better
cordova plugin rm phonegap-nfc
cordova plugin add phonegap-nfc@0.7.3
Let me know if any of that works (or doesn't).
i use cordova plugin add phonegap-nfc@0.7.3 and it works. thx!
having this error while build app to my android phone(using Visual Studio 2015)
im using
Cordova cli 6.3.0
while use config.xml to install phonegap nfc plugin in VS 2015, it shows a column
NFC_USEAGE_DESCRIPTION
, is it needed to fill? can't find what to fill in README.