Open
Description
Context
Referring to the Polkadot Dapp Integration Guide, we can see how to set up a connection with a Wallet Connect supported wallet, but it is not obvious how to re-connect to an already established session.
For example if I refresh or revisit my web app, there does not appear to be an API documented that allows for a reconnect to an existing session. I assume that this is possible, but is currently unknown for the Dapp developer based on this doc. If I go through the modal -> scan QR process again, I establish another connection, rather than use the previously initiated one.
We can see that wallets like Nova Wallet maintain the session in their Wallet Connect UI - I assume then that it is possible to re-establish a connection to this session.
Activity
linear commentedon Sep 3, 2024
DR-336 Missing Polkadot Docs: Reconnecting to already-initiated session?
[-]Missing Polkadot Docs: Reconnecting to already-initiated session?[/-][+]Missing Polkadot Dapp Docs: Reconnecting to already-initiated session?[/+]rossbulat commentedon Oct 4, 2024
I have now implemented Wallet Connect support in the Polkadot Developer Console. This implementation may be a good resource to refer to for improving the Polkadot Dapp Integration Guide as it:
On the flip side I have implemented this support based on the available docs, so if there are better APIs that enable UX improvements I'd definitely be interested to amend Developer Console.
Developer Console's "Connect Accounts" module hosting Wallet Connect support:
[-]Missing Polkadot Dapp Docs: Reconnecting to already-initiated session?[/-][+]Missing Polkadot Dapp Docs[/+]rtomas commentedon Oct 4, 2024
@rossbulat would you like to make a PR to our docs ?