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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -