Unable to configure settings in provideRemoteConfig
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 2.2k
- Merge medio
- 22 h 28 min
- PR fusionados (30 d)
- 6
Descripción
### Version info
**Angular:**
^12.2.9
**Firebase:**
^9.1.2
**AngularFire:**
^7.1.0
**Other (e.g. Ionic/Cordova, Node, browser, operating system):**
"rxfire": "^6.0.2",
"rxjs": "^6.6.7",
Node LTS (14)
npm@6
### How to reproduce these conditions
**Failing test unit, Stackblitz demonstrating the problem**
**Steps to set up and reproduce**
Copy the following code in the `imports` modules of `AppModule`:
```ts
provideFirebaseApp(() => initializeApp(environment.firebase)),
provideAuth(() => getAuth()),
provideMessaging(() => getMessaging()),
provideAnalytics(() => getAnalytics()),
provideRemoteConfig(() => {
console.log('provideRemoteConfig')
const remoteConfig = getRemoteConfig();
if (isDevMode()) {
console.log('isDevMode')
remoteConfig.settings.minimumFetchIntervalMillis = 10 * 1000;
}
return remoteConfig;
}),
```
### Expected behavior
It should run the code (console.log, etc...) and set the fetch time in dev env.
### Actual behavior
Currently, it does nothing (no console output) and it's really hard to work with Remote Config since it's 12 hours throttle update with default settings...
Guía de contribución
Línea de trabajo
Reproduce el problema con el fragmento de AppModule y sigue el punto de entrada de provideRemoteConfig junto con las demás funciones de proveedor. Verifica por qué el callback no registra nada ni aplica minimumFetchIntervalMillis y, a continuación, confirma que el callback se ejecuta y que se aplica el intervalo de recuperación de desarrollo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, firebase, typescript
- Área
- cloud
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100