RootSoft / walletconnect-dart-sdk

Open protocol for connecting dApps to mobile wallets with QR code scanning or deep linking.
MIT License
104 stars 61 forks source link

Session exist error prompt on Android #87

Closed marqueeeeeee closed 1 year ago

marqueeeeeee commented 1 year ago

Hi, need some help on solving this issue:

It only occurs on Android, when connecting i'm getting session exist error even if the app are restarted both the dApp and metamask app.

IMG_6779

kinggongzilla commented 1 year ago

+1, we have the same issue

anhto611 commented 1 year ago

+1, we have the same issue

RootSoft commented 1 year ago

This is a MetaMask issue: https://github.com/MetaMask/metamask-mobile/issues/5230

In short: when launching an app using a deeplink / uri, the started Android activity remembers the session, so everytime you launch MetaMask again, it tries to reestablish the connection. You can even try this by launching Metamask through a WC uri and then navigating to the background (don't close), then opening Metamask from your background apps.