From d42300136beba8660e95a746de0386261bbcc636 Mon Sep 17 00:00:00 2001 From: William Chong Date: Thu, 9 Nov 2023 01:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20wcV1=20uri=20in=20Liker?= =?UTF-8?q?Id=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/walletconnect-dialog.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/walletconnect-dialog.tsx b/src/components/walletconnect-dialog.tsx index c33b787..1e15ff6 100644 --- a/src/components/walletconnect-dialog.tsx +++ b/src/components/walletconnect-dialog.tsx @@ -82,12 +82,20 @@ export const WalletConnectQRCodeDialog: FC = ({ } case LikeCoinWalletConnectorMethodType.LikerId: - saveMobileLinkInfo({ - name: 'Liker Land App', - href: 'com.oice://wcV1', - }); + if (isAndroid) { + saveMobileLinkInfo({ + name: 'Liker Land App', + href: 'intent://wc#Intent;package=com.oice;scheme=com.oice;end;', + }); - return `com.oice://wcV1?${uri}`; + return `intent://wc?${uri}#Intent;package=com.oice;scheme=com.oice;end;`; + } else { + saveMobileLinkInfo({ + name: 'Liker Land App', + href: 'com.oice://wc', + }); + return `com.oice://wc?${uri}`; + } default: return '';