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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -