Skip to content

Conversation

mikehardy
Copy link
Collaborator

@mikehardy mikehardy commented Sep 30, 2025

Description

This PR exposes the new realtime updates feature shipped in firebase-js-sdk 12.3.0 in react-native-firebase's "Other" platform implementation

Notes:

  • not currently working, no events come through yet
  • the e2e tests definitely probe realtime updates on android/ios so suspect implementation
  • hypothesis: reliance on ReadableStream implementation in react-native is problematic similar to ai, may need polyfill
  • other hypothesis: relying on firebase-js-sdk events directly may be incorrect design, auth:auth_state_changed event
    for instance is implemented by treating the firebase-js-sdk level event as something to be wrapped like a true native
    platform callback, is handled by rnfb JS 'native-like auth module' internally and re-emitted as a react-native event via EventEmitter

Release Summary

Will be a small series of conventional commits that will trigger the correct release notes automagically

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
    • Other (macOS, web)
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan

The e2e tests very thoroughly probe realtime updates, and have recently been re-worked such that they are reliable in CI even (vs just running locally) so are enabled everywhere. The testing support here should be 100%, which is a good thing because the initial implementation is not working and e2e clearly shows it


Think react-native-firebase is great? Please consider supporting the project with any of the below:

…ime updates WIP

Notes:
- not currently working, no events come through yet
- the e2e tests *definitely* probe realtime updates on android/ios so suspect implementation
- hypothesis: reliance on ReadableStream implementation in react-native is problematic similar to ai, may need polyfill
- other hypothesis: relying on firebase-js-sdk events directly may be incorrect design, auth:auth_state_changed event
  for instance is implemented by treating the firebase-js-sdk level event as something to be wrapped like a true native
  platform callback, is handled by rnfb JS 'native-like auth module' internally and re-emitted as a react-native event via EventEmitter
Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-firebase Ready Ready Preview Comment Sep 30, 2025 0:49am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macOS (Other) plugin: remote_config Firebase Remote Config type: enhancement Implements a new Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant