NFC discovery fix

This commit is contained in:
minibits-cash
2026-05-30 22:34:06 +02:00
parent 7bf7685ec6
commit 16700a439f
2 changed files with 47 additions and 2 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ android {
applicationId "com.minibits_wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 58072
versionName "0.4.2"
versionCode 58073
versionName "0.4.3"
}
splits {
+45
View File
@@ -64,6 +64,30 @@
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="cashu" />
</intent-filter>
<!-- NFC tag/peer dispatch (e.g. tapping another wallet to receive a lightning: URI).
Without these, an installed wallet that declares NDEF_DISCOVERED wins the NFC
chooser and Minibits is excluded; the VIEW filters above only catch the
ACTION_VIEW fallback that fires when no app claims NDEF_DISCOVERED. -->
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lightning" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlw" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlp" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="cashu" />
</intent-filter>
</activity-alias>
<!-- Golden theme launcher icon alias (disabled by default) -->
@@ -102,6 +126,27 @@
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="cashu" />
</intent-filter>
<!-- NFC tag/peer dispatch (mirror of .MainActivityDefault) -->
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lightning" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlw" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlp" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="cashu" />
</intent-filter>
</activity-alias>
<service
android:name="com.reactnativehce.services.CardService"