perawallet / pera-wallet

Source code for Pera Wallet, simply the best Algorand wallet.
https://perawallet.app
Other
189 stars 60 forks source link

Multiple connect prompts #117

Open elingersin1 opened 1 year ago

elingersin1 commented 1 year ago

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

sucodlaranja commented 1 year ago

same problem, sometimes also happens with sign txns popups.

sebsmedrano commented 1 year ago

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 commented 1 year ago

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