From 8af2c03681227a29f490085ef6dbfd2d7a28b1d8 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Sat, 18 Jan 2025 12:53:31 +0100 Subject: [PATCH] Add important information about Phantom Wallet --- docs/appkit/flutter/core/installation.mdx | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/docs/appkit/flutter/core/installation.mdx b/docs/appkit/flutter/core/installation.mdx index d2d3ff3b..e778f2cb 100644 --- a/docs/appkit/flutter/core/installation.mdx +++ b/docs/appkit/flutter/core/installation.mdx @@ -184,19 +184,26 @@ Coinbase Wallet is enabled by default even if, in order to function properly, a ### Phantom Wallet -Phantom Wallet does not use the WalletConnect protocol for communication between the dApp and the wallet, instead it provides an internal API mechanism. +:::caution important note +Phantom Wallet support is available from `reown_appkit: ^1.4.0-beta01` and is currently in beta. Any feedback is appreciated. +::: -This means that pairing topic, session topic, session events and other session-related features are not available when connecting to Phantom Wallet. +Phantom Wallet does not use the WalletConnect protocol for communication between the dApp and the wallet, instead it provides an internal API mechanism based on deep/universal links. -Furthermore, Phantom Wallet API only supports interaction with Solana blockchains. +This means that pairing topic, session topic, session events and other session-related features are not available when connecting to Phantom Wallet and the interation is really basic. Dapp sends a request, Phantom Wallet responds. That's all. -However, there are no extra steps for you to support Phantom Wallet on your dApp. +Furthermore, Phantom Wallet deep/universal links mechanism supports interaction only with Solana blockchain. -:::caution important note +In order to support Phantom Wallet interactions a few extra steps has to be performed, only if you haven't implemented [Link Mode](./link-mode.mdx) already. -Phantom Wallet support is available from `reown_appkit: ^1.4.0-beta01` and is currently in beta. Any feedback is appreciated. - -::: +1. First, be sure you already have your redirection back configuration properly set in place. See [Redirect to your dApp](./usage#redirect-to-your-dapp) +2. Then, you will have to implement platform specific steps in order to be able to catch Phantom Wallet callback links. See [Link Mode Platform specific steps](./link-mode#platform-specifics) +3. Finally, you will have to implement your own Depp Link mechanis on Flutter side and when a link is received through it, you just call `await _appKitModal.dispatchEnvelope(link);` + + As an example you can see how we do it on our Sample Dapp by follwoing... + - [Android's platform specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/android/app/src/main/kotlin/com/example/dapp/MainActivity.kt) + - [iOS's platform specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/ios/Runner/AppDelegate.swift) + - [Dart's specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/lib/utils/deep_link_handler.dart) ## Example