Unable to configure settings in provideRemoteConfig
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 22 Std. 28 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### 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...
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem mit dem AppModule-Snippet und verfolge den Einstiegspunkt von provideRemoteConfig zusammen mit den anderen Provider-Funktionen. Überprüfe, warum der Callback weder protokolliert noch minimumFetchIntervalMillis anwendet, und bestätige anschließend, dass der Callback ausgeführt und das Entwicklungsabrufintervall angewendet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, firebase, typescript
- Bereich
- cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100