pera-wallet icon indicating copy to clipboard operation
pera-wallet copied to clipboard

Multiple connect prompts

Open elingersin1 opened this issue 1 year ago • 3 comments

Steps to reproduce: Connect Pera (scan or though mobile deeplink) Pera wallet is opened Connect popup is displayed Select account and click "Connect" A success message is displayed Put Pera wallet in background and return to Pera Connect popup is displayed again

Tested on Android. This bug is especially problematic on mobile where you forced to put the wallet to background (because you're returning to your dApp), and when going back to Pera - to sign txns etc... you will always see the previous connect prompts

elingersin1 avatar Aug 07 '23 14:08 elingersin1

same problem, sometimes also happens with sign txns popups.

sucodlaranja avatar Aug 09 '23 08:08 sucodlaranja

Same issue, I noticed that when you have several disconnected sessions, after closing and opening Pera Wallet again all this disconnected sessions turn to connected somehow. When trying to connect to a new dApp several connect prompts appear.

sebsmedrano avatar Aug 16 '23 05:08 sebsmedrano

I am attaching a video where I reproduced the issue. You may notice that every time I move back to PeraWallet app it tries to reconnect to closed sessions, this causes the "connect" prompt to be shown. If there are several disconnected sessions, that prompt will appear several times as well, and makes the real connection to fail sometimes.

https://github.com/perawallet/pera-wallet/assets/103072053/b1bbc9fb-e337-4640-9e8a-927ddd9c7e4e

sebsmedrano avatar Aug 17 '23 17:08 sebsmedrano