Ternoa Wallet has integrated Wallet Connect, to make it easy and secure to connect with dApps. 3 methods are available to initliatize a connection between a dApp and the wallet.
Example
ternoa-wallet://wc?uri=<wallet-connect-ui>
Example
import QRCodeModal from "@walletconnect/legacy-modal";
...
QRCodeModal.open(uri)
...
Ternoa Wallet injects an isTernoaWallet boolean in webview, this boolean will be user to defect that this is a webview
Example
const isTernoaWallet = (window as any).isTernoaWallet;
if (isTernoaWallet) {
const ternoWalletWebview = (window as any).ReactNativeWebView;
ternoWalletWebview.postMessage(JSON.stringify({ data: uri, action: "WC_PAIR" }));
}