Make remote config version available through API #9176
+34
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
Firebase JS SDK lacks realtime updates support.
I'm not sure why.
But I checked, how Android SDK is working, and implemented my own wrapper around
@firebase/remote-config
, which supports realtime updates. One thing I miss though — is remote config version extraction from the.../firebase:fetch
endpoint response, in order to use it later in.../firebase:streamFetchInvalidations
request payload.I am patching local
@firebase/remote-config
package usingpnpm patch
, but I need to redo the patch every time new version came out.So I decided it worth trying to make a PR. I figured, that if you are planning to add realtime updates support into JS SDK in future, you will have to add this change anyways.
It doesn't introduce any changes from regular user's perspective, not breaking, nor minor. So it could be new patch version. And it will help me a lot, so I could remove my local package patching.
Thank you for your attention!