WalletConnectModalFlutter
WalletConnectModalFlutter copied to clipboard
Websocket getting disconnected in iOS safari pwa app
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:
- Open the pwa app in iOS safari browser
- Select any chain
- Click connect wallet
- it deep link to the selected wallet ,in my case it is Metamask
- after successfull connectting to Metamask wallet it come back to iOS safari tab
- 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):
- Device: iPhone 13
- OS:iOS 17.5.1 -Latest version
Additional context Add any other context about the problem here.
@quetool - Please give some insight , how can we fix this issue
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!
@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 ?