Open
Description
[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:
- Use the javascript sdk in a react app in PWA mode in an iphone with iOS 16+.
- Use the onValue method to observe for changes on one component.
- Open the component that uses onValue.
- Close the component.
- Put the app in background.
- Interact with other apps on the phone for a few minutes.
- 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: