MetaMask / metamask-sdk

The simplest yet most secure way to connect your blockchain-based applications to millions of MetaMask Wallet users.
https://metamask.io/sdk/
Other
165 stars 101 forks source link

reactNativeDemo - issues with request account after disconnect #264

Closed bearsworth closed 1 year ago

bearsworth commented 1 year ago

Describe the bug When a user connects to Metamask waits 20 seconds or more, then clicks the "Request Accounts" button, the demo will redirect to the metamask mobile wallet but then hang and never return back to the demo app.

According to status -> the app goes to pause, then disconnects. Upon request accounts on the disconnect, the hang occurs before and error is thrown after some time with rpcId=3188336780 timed out.

To Reproduce Steps to reproduce the behaviour:

  1. Use the reactNativeDemo
  2. Click connect
  3. Wait at least 20-30 seconds
  4. Click request accounts
  5. App will move to mobile app then hang and not redirect back to demo app

Expected behaviour The metamask mobile app should redirect back to the demo app for the failure or just send back requested account details again.

Screenshots If applicable, add screenshots to help explain your problem.

Provide environment information

Additional context Add any other context about the problem here.

bearsworth commented 1 year ago

Another odd issue is that if you terminate the request and connect again, the app will redirect to metamask and show "Connecting to metamask" and never move forward.

You then have to restart the mobile app, terminate connection again, then connect again then it might work the next time.

bearsworth commented 1 year ago

This is very odd. It looks maybe there was a network issue. Now it seems to to work as expected...