Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket getting disconnected in iOS safari pwa app #46

Open
gvbinarybard opened this issue Jul 9, 2024 · 3 comments
Open

Websocket getting disconnected in iOS safari pwa app #46

gvbinarybard opened this issue Jul 9, 2024 · 3 comments
Assignees

Comments

@gvbinarybard
Copy link

gvbinarybard commented Jul 9, 2024

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):

  • Device: iPhone 13
  • OS:iOS 17.5.1
    -Latest version

Additional context
Add any other context about the problem here.

@gvbinarybard
Copy link
Author

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

@quetool
Copy link
Collaborator

quetool commented Jul 9, 2024

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 quetool self-assigned this Jul 9, 2024
@gvbinarybard
Copy link
Author

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants