mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
NFC discovery fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user