From 7692e2bf7e353145d1ab0bf8c1fbf7b866bd45b7 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 28 Dec 2022 13:57:56 -0800 Subject: [PATCH] Fix issue with wallet links opening in app store Changelog-Fixed: Fix issue with wallet links opening in app store --- damus/Info.plist | 9 +++++++++ damus/Util/Constants.swift | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/damus/Info.plist b/damus/Info.plist index 504a596..05e7955 100644 --- a/damus/Info.plist +++ b/damus/Info.plist @@ -17,7 +17,16 @@ LSApplicationQueriesSchemes + muun + zeusln + zebedee lightning + squarecash + phoenix + lnlink + strike + bluewallet + walletofsatoshi NSAppTransportSecurity diff --git a/damus/Util/Constants.swift b/damus/Util/Constants.swift index 9b3f05c..07b5edd 100644 --- a/damus/Util/Constants.swift +++ b/damus/Util/Constants.swift @@ -25,6 +25,7 @@ public class Constants { NostrEvent(id: UUID().description, content: "Bonjour Le Monde", pubkey: "3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681"), ] + // New url prefixes needed to be added to LSApplicationQueriesSchemes static let WALLETS = """ [ {"id": 0, "name": "Strike", "link": "strike:", "appStoreLink": "https://apps.apple.com/us/app/strike-bitcoin-payments/id1488724463", "image": "strike"}, @@ -34,7 +35,7 @@ public class Constants { {"id": 4, "name": "Wallet Of Satoshi", "link": "walletofsatoshi:lightning:", "appStoreLink": "https://apps.apple.com/us/app/wallet-of-satoshi/id1438599608", "image": "walletofsatoshi"}, {"id": 5, "name": "Zebedee", "link": "zebedee:lightning:", "appStoreLink": "https://apps.apple.com/us/app/zebedee-wallet/id1484394401", "image": "zebedee"}, {"id": 6, "name": "Zeus LN", "link": "zeusln:lightning:", "appStoreLink": "https://apps.apple.com/us/app/zeus-ln/id1456038895", "image": "zeusln"}, - {"id": 7, "name": "LNLink", "link": "lnlink://", "appStoreLink": "https://testflight.apple.com/join/aNY4yuuZ", "image": "lnlink"}, + {"id": 7, "name": "LNLink", "link": "lnlink:lightning:", "appStoreLink": "https://testflight.apple.com/join/aNY4yuuZ", "image": "lnlink"}, {"id": 8, "name": "Phoenix", "link": "phoenix://", "appStoreLink": "https://apps.apple.com/us/app/phoenix-wallet/id1544097028", "image": "phoenix"}, ] """.data(using: .utf8)!