Skip to content

Websocket getting disconnected in iOS safari pwa app #46

@gvbinarybard

Description

@gvbinarybard

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions