Skip to content

Connection Lost on Safari #7132

Open
Open
@ahmed-shahid-confiz

Description

@ahmed-shahid-confiz

[REQUIRED] Describe your environment

  • Operating System version: iOS 16+
  • Browser version: Safari 16+
  • Firebase SDK version: 9.9.2
  • Firebase Product: realtime database

[REQUIRED] Describe the problem

Steps to reproduce:

  1. Use the javascript sdk in a react app in PWA mode in an iphone with iOS 16+.
  2. Use the onValue method to observe for changes on one component.
  3. Open the component that uses onValue.
  4. Close the component.
  5. Put the app in background.
  6. Interact with other apps on the phone for a few minutes.
  7. Open the component again that uses the onValue method.

The onValue method never returns the snapshot and does not throw any error either.

I have tried managing online presence as mentioned in the documentation here.

The onValue method does not return for the ".info/connected" node nor does it throw any error.

It starts working once the app is killed and relaunched. But, we cannot communicate to users to kill the app whenever they see an issue such as this. Can anybody help here?

I reached out to support and this was their final response which is why I opened the issue here on GitHub:
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions