firebase-php icon indicating copy to clipboard operation
firebase-php copied to clipboard

Add features to get firebase server env remote config

Open HyeZedd opened this issue 1 year ago • 5 comments

Describe the feature you would like to see

Currently on firebase remote config have 2 env option which is client & server. Currently cant get remote config from client env only.

HyeZedd avatar Jul 29 '24 13:07 HyeZedd

Could you please provide more details? What is a 2 env option? What is meant by client/server?

The best would be a link to the official documentation or relevant code in one of the official SDKs (This is something that the notes when creating a feature request asked already).

jeromegamez avatar Jul 29 '24 13:07 jeromegamez

image

as stated in the image above.. firebase have 2 remote config option.. client or server.. right now only can get from the client.. it there any way to get from server.

this are documentation that might help https://firebase.google.com/docs/remote-config/server

HyeZedd avatar Jul 30 '24 01:07 HyeZedd

Thanks! Other relevant links, for future reference:

  • https://github.com/firebase/firebase-admin-node/blob/master/src/remote-config/remote-config.ts
  • https://firebase.google.com/docs/remote-config/server
  • https://console.firebase.google.com/u/1/project/_/config/env/firebase-server

jeromegamez avatar Jul 30 '24 09:07 jeromegamez

I looked into this a little bit and found that the server template version is a different data structure compared to the client template version, so there's a little more work to do than just copying the get() method to a getServerTemplate().

Also, this addition would require a change to the RemoteConfig interface, so it's possible that I have to hold back on this until the next major version.

jeromegamez avatar Sep 10 '24 23:09 jeromegamez

can this issue be assingned to me?

CodeLeom avatar Apr 30 '25 13:04 CodeLeom