From 66c8c58b6aa8720c2c027b5120194d97d7c00ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Fri, 18 Feb 2022 18:32:34 +0400 Subject: [PATCH] Add support for blixtwallet: deeplinking --- android/app/src/main/AndroidManifest.xml | 7 +++++++ ios/BlixtWallet/Info.plist | 2 ++ src/state/DeeplinkManager.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 09d56b8a0..05e1a0c6e 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -41,6 +41,13 @@ + + + + + + + diff --git a/ios/BlixtWallet/Info.plist b/ios/BlixtWallet/Info.plist index ffc39b6ea..9d665b6f9 100644 --- a/ios/BlixtWallet/Info.plist +++ b/ios/BlixtWallet/Info.plist @@ -30,6 +30,7 @@ lnurlw lnurlp lightning + blixtwallet @@ -52,6 +53,7 @@ lnurlw lnurlp lightning + blixtwallet LSRequiresIPhoneOS diff --git a/src/state/DeeplinkManager.ts b/src/state/DeeplinkManager.ts index 864d34b5c..03967d3e3 100644 --- a/src/state/DeeplinkManager.ts +++ b/src/state/DeeplinkManager.ts @@ -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