Skip to content

Commit

Permalink
Add support for blixtwallet: deeplinking
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Feb 18, 2022
1 parent e65b9a7 commit 66c8c58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
<data android:scheme="lightning" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="blixtwallet" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
Expand Down
2 changes: 2 additions & 0 deletions ios/BlixtWallet/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<string>lnurlw</string>
<string>lnurlp</string>
<string>lightning</string>
<string>blixtwallet</string>
</array>
</dict>
</array>
Expand All @@ -52,6 +53,7 @@
<string>lnurlw</string>
<string>lnurlp</string>
<string>lightning</string>
<string>blixtwallet</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
Expand Down
1 change: 1 addition & 0 deletions src/state/DeeplinkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const deeplinkManager: IDeeplinkManager = {
for (let subject of data.split(/\s/)) {
try {
subject = subject.toLowerCase().replace("lightning:", "");
subject = subject.replace("blixtwallet:", "");
log.d("Testing", [subject]);

// If this is an invoice
Expand Down

1 comment on commit 66c8c58

@vercel
Copy link

@vercel vercel bot commented on 66c8c58 Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.