WalletConnect / WalletConnectModalFlutter

The WalletConnectModal for WalletConnect built using Flutter.
https://pub.dev/packages/walletconnect_modal_flutter
Apache License 2.0
20 stars 18 forks source link

Websocket getting disconnected in iOS safari pwa app #46

Open gvbinarybard opened 1 month ago

gvbinarybard commented 1 month ago

Describe the bug Websocket getting disconnected in iOS safari pwa app It will be great if some one from walletconnect team look into it or provide guidance how to fix it It used to work some time back

To Reproduce Steps to reproduce the behavior:

  1. Open the pwa app in iOS safari browser
  2. Select any chain
  3. Click connect wallet
  4. it deep link to the selected wallet ,in my case it is Metamask
  5. after successfull connectting to Metamask wallet it come back to iOS safari tab
  6. you will see the error in console log

Meaningful logs

[Error] WebSocket connection to 'wss://relay.walletconnect.com/?auth=eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkaWQ6a2V5Ono2TWt1ZmMxY1RURFhaVWp2U1B6amVkRGVmaXdrMzI2QzJBclZlUThidDNnZmhaRSIsInN1YiI6IjQ0MGQwZjBmODRjZGY1Yzg2ZGRmY2RhYjY0ODk1NmYyNjMwNWM2ZjFjMWM4ZGM4YjRlNTFjY2QwMTQ4NDE4OTEiLCJhdWQiOiJ3c3M6Ly9yZWxheS53YWxsZXRjb25uZWN0LmNvbSIsImlhdCI6MTcyMDQ0NDc2NCwiZXhwIjoxNzIwNTMxMTY0fQ.DBIVn1rxG9HWpvQ51gOuCC43c9bqOPJuC0VGAvBkTJff0Qta1a6Vm5ITaP34PbfRCUyfW6izI0gmc9JRCc76AA&projectId=d8e7ca35224acdf8cb560842891af6aa&ua=wc-2%2FFlutter-2.3.0-beta03%2Fweb-browser%2Fweb&origin=walletconnect_flutter_dapp&useOnCloseEvent=true' failed: The operation couldn’t be completed. Software caused connection abort
[Log] Handling relay close, code: 1006, reason:  (main.dart.js, line 33743)

Reproducible code Minimum reproducible code of the issue

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

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

gvbinarybard commented 1 month ago

@quetool - Please give some insight , how can we fix this issue

quetool commented 1 month ago

Hello @gvbinarybard, please allow me some time to investigate but it could take a while as web support is not a priority right now. In the meantime could you identify the version that used to work properly? I'd really appreciate, thanks!

gvbinarybard commented 1 month ago

@quetool - sorry for the late reply - here is the version which used to work - v2.1.15. Do you think it might be due to the walletconnect_flutter_v2 version , have added some thing which closed the websocket connection ?