Well, my purpose is to detect if the Android device supports NFC and if not I will use some other technology. I have set my minimum API level to 8 as I want my app to function even on these devices without NFC.
Is there a method like isNFCSupported()? any ideas?
thanks yosoh.
You can check for NFC settings on your Samsung Android device by looking in the settings app > connections > tap NFC and contactless payments. If you see an option for NFC there, your device is enabled to make NFC payments.
Tap the Settings icon. Tap Connected devices. Select the Connection preferences option. Select NFC.
Every iPhone since the iPhone 6 Version 3 of the app includes NFC triggers for iPhone XR, XS, and XS Max for actions via custom NFC stickers. The iPhone 7 and newer phones can use in-app NFC scanning. Launch Center Pro for iPad has been retired, and the iOS version now supports both iPhone and iPad.
Step #1: Put this in your manifest:
<uses-feature android:name="android.hardware.nfc" android:required="false" />
Step #2: Call hasSystemFeature(PackageManager.FEATURE_NFC)
on PackageManager
to see if NFC is available on the current device
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With