3. Application manifest file
Configure AndroidManifest.xml so the NFC Wallet SDK can run correctly.
Android permissions
Declare the following permissions in AndroidManifest.xml:
android.permission.INTERNET
Required
Enable network calls (for example, enrollment and payment key replenishment).
android.permission.NFC
Required
Enable NFC access for contactless payment.
android.permission.USE_BIOMETRIC
Conditional
Enable biometric authentication as CDCVM.
android.permission.USE_FINGERPRINT
Conditional
Support Android 9 and earlier when using biometrics as CDCVM.
Declare NFC features
For contactless payment, the device must support:
android.hardware.nfcandroid.hardware.nfc.hce
Option A: Filter unsupported devices in Google Play
Declare both features as required:
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<uses-feature android:name="android.hardware.nfc.hce" android:required="true" />Option B: Allow install and check at runtime
If you cannot filter device compatibility in Google Play, check feature support using the Android APIs:
Enable CPS communication service
Enable CPSCommService to process CPS message communication.
Disable backup and restore
Disable Android application backup and restore.
Example AndroidManifest.xml
This example shows the typical declarations you need. Adjust names and metadata to your digital wallet application.
Last updated
Was this helpful?