cordova plugins - On/Off NFC system setting through Phonegap -
i using chariotsolution's nfc plugin phonegap (https://github.com/chariotsolutions/phonegap-nfc) , it's working perfect reading nfc tag. in application there toggle button want on/off nfc system setting through programmatically in phonegap. possible app?
there method, show setting not on/off.
nfc.showsettings();
you can't programmatically turn nfc on , off. nfc.showsettings
function starts intent opens nfc settings user can enable (or disable) nfc. https://github.com/chariotsolutions/phonegap-nfc#nfcshowsettings
use nfc.enabled
check if nfc enabled. https://github.com/chariotsolutions/phonegap-nfc#nfcenabled
both of these functions wrap android nfc apis https://developer.android.com/reference/android/nfc/nfcadapter.html#isenabled()
Comments
Post a Comment