Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
Firebase Remote Config solo obtiene valores predeterminados

Estoy usando react-native-firebase https://rnfirebase.io/remote-config/usage para intentar obtener mis valores.

Firebase dice que obtuvo mis valores porque estoy recibiendo este registro de la consola:

"Configs were retrieved from the backend and activated."

PERO, cuando intento generar solo el valor, solo puedo ver los valores predeterminados si están configurados.

Soy consciente de la forma en que Firebase almacena en caché la configuración remota, pero aún no puedo hacer que funcione configurando un tiempo de espera de caché personalizado.

Me encantaría alguna orientación aquí, no estoy tan seguro de lo que podría estar haciendo mal.

Aquí está mi código que se ejecuta al cargar la aplicación.

 async componentDidMount() { await remoteConfig() .setConfigSettings({ minimumFetchInterval: 10, minimumFetchIntervalMillis: 10000, // 10 secs fetchTimeMillis: 10000 }) await remoteConfig() .setDefaults({ min_app_version: 1.17, test_param: 'disabled' }) // await remoteConfig().fetch(0); await remoteConfig().fetchAndActivate(0) .then(fetchedRemotely => { if (fetchedRemotely) { console.log( '+++Configs were retrieved from the backend and activated.', ); console.log(fetchedRemotely); } else { console.log( '+++++No configs were fetched from the backend, and the local configs were already activated', ); } }); //Code to get All parameters from Firebase Remote config //ONLY default values show here if they are set const parameters = remoteConfig().getAll(); Object.entries(parameters).forEach($ => { const [key, entry] = $; console.log('--Key: ', key); console.log('--Source: ', entry.getSource()); console.log('--Value: ', entry.asString()); console.log('--------------------------------'); }); const minAppVersion = remoteConfig().getValue('min_app_version'); const isApplicationOn = remoteConfig().getBoolean('is_application_on'); //set value in redux (local storage) this.props.minAppVersionFirebaseRemoteConfig(minAppVersion._value) console.log(minAppVersion) console.log(isApplicationOn) }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda