Starting your UPI App via NFC

Home Forums UPI API Starting your UPI App via NFC

Tagged: , ,

This topic contains 0 replies, has 1 voice, and was last updated by  rselva 8 months, 2 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1832

    rselva
    Participant

    To start your UPI app via NFC, the AndroidManifest needs to have the following permission’
    <uses-permission android:name="android.permission.NFC" />
    The recommended minmum SDK is API level 10 so you can add
    <uses-sdk android:minSdkVersion="10"/>
    If you want to restrict your UPI App ONLY to mobiles that have NFC, you can add
    <uses-feature android:name="android.hardware.nfc" android:required="true" />
    This will make your app visible (in GooglePlay) only to mobiles that have NFC hardware.
    For maximum control your NFC UPI app should filter for ACTION_NDEF_DISCOVERED intent
    Eg:

    <intent-filter>
        <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:scheme="upi" android:host="pay" />
    </intent-filter> 
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.