metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

this session is already connected

Open chendaxia65 opened this issue 4 years ago • 25 comments

Why is there a prompt this session is already connected every time I open metamask?

chendaxia65 avatar Nov 11 '22 07:11 chendaxia65

I also got this pop up when I am trying to connect my Daap with WalletConnect.

0xHristo avatar Nov 11 '22 17:11 0xHristo

having this problem too, although it only occur on android metamask and not on iOS

marqueeeeeee avatar Nov 13 '22 15:11 marqueeeeeee

even when session was cleared from metamask app before connecting, the error prompt still shows. IMG_6787

marqueeeeeee avatar Nov 14 '22 06:11 marqueeeeeee

What dapp are you using? It is because a sesson from Dapp already attached to current session, while a second session is trying to connnect again.

tiancaidao avatar Nov 17 '22 15:11 tiancaidao

What dapp are you using? It is because a sesson from Dapp already attached to current session, while a second session is trying to connnect again.

This error occurs when there is no existing session. Going to settings/experimental/sessions shows "You have no active sessions". Selecting "Clear all Metamask SDK Connections" does not resolve the issue. This has been replicated also on the Rarible sdk example dapp. The same dapp connects fine to Metamask via WalletConnect on IOS - so the issue is solely with Andriod devices.

Also, a fresh restart of the android device does not resolve the issue.

vicwtang avatar Nov 17 '22 17:11 vicwtang

yup same issue only Android even connecting with a fresh session.

marqueeeeeee avatar Nov 18 '22 01:11 marqueeeeeee

any update for this?

buivanday96 avatar Dec 15 '22 05:12 buivanday96

Also keen to hear an update.

Thanks

stevenkeith85 avatar Dec 15 '22 14:12 stevenkeith85

Still experiencing this even the app is just minimized and back on foreground again

kabaluyot avatar Dec 21 '22 03:12 kabaluyot

this issue still exists

TalhaCagatay avatar Jan 16 '23 20:01 TalhaCagatay

Any updated on this? Anything?

devamitsharma101 avatar Jan 24 '23 10:01 devamitsharma101

Also getting this issue - any updates ?

tomheather-50 avatar Jan 30 '23 14:01 tomheather-50

It's been months without any progress on this issue. I gave up and incorporated the WAGMI/Web3Modal hooks, changed the way I accessed metamask to direct interaction (as required for IOS) and have had much better results. Not 100% - it seems just to flakey for that - but about 90% stability. Still better than having to run within the Metamask Browser. Would be nice if Metamask could get this working more reliably for PWA's

On Mon, Jan 30, 2023 at 6:00 AM Zigg @.***> wrote:

Also getting this issue - any updates ?

— Reply to this email directly, view it on GitHub https://github.com/MetaMask/metamask-mobile/issues/5230#issuecomment-1408675772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKOKA2IBSB2IYFRZSFTSC3WU7CO5ANCNFSM6AAAAAAR5KPLEU . You are receiving this because you commented.Message ID: @.***>

vicwtang avatar Jan 30 '23 18:01 vicwtang

@vicwtang Thank you because i just did the same, only took around 1 day to implement some testing to do ...

would be nice if a org like Metamask could fix these issues quicker

tomheather-50 avatar Jan 31 '23 18:01 tomheather-50

Hey guys, this is quite a severe issue and means you can’t do any actions with the specific app. You have no way to disconnect the session on the mobile app, and you are just left unable to do it. Would class this as super important issue to get fixed, any news on this? 307F3716-F1E9-4E5C-89BA-DE662205F838

joshstevens19 avatar Feb 12 '23 01:02 joshstevens19

We are investigating the issue. Trying to replicate it and working on a fix. Thanks for your patience.

andreahaku avatar Feb 15 '23 13:02 andreahaku

I have the same problem. No sessions in "Experimental" sections and "Clear all Metamask SDK Connections" does not help as well. And I still see this error.

UPDATE: I found out that it happens because I stored the session inside my dApp's secure storage. And on init of my dApp I restored this session from this secure storage. But seems like Metamask didn't have this saved session anymore. Furthermore, after I cleared this storage of my dApp, I was able to reconnect to Metamask and create a new session. Anyway, it's strange that Metamask says "The session is already connected" and I can't find it inside "Experimental" section in sessions list.

vitamin33 avatar Feb 20 '23 13:02 vitamin33

I found a workaround for this issue:

  1. Clear all Metamask SDK sessions
  1. Clear all WalletConnect sessions
  1. Clear Data and Cache for the app you are trying to connect.
  1. Try connecting again

techieanant avatar Feb 24 '23 22:02 techieanant

I tried all the potential solutions countless times but none work for me. These metamask issues eat so much of my productive time, it's insane. @MM team please try to fix this issue as soon as possible. Thank you.

(I use the lastest Android app release from last week).

ratio91 avatar Feb 27 '23 10:02 ratio91

I have the same problem. It would be cool if MetaMask starts to do something!

samui68400 avatar Mar 21 '23 23:03 samui68400