angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Unable to configure settings in provideRemoteConfig

Open Odonno opened this issue 3 years ago • 5 comments

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:

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...

Odonno avatar Oct 13 '21 11:10 Odonno

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Oct 13 '21 11:10 google-oss-bot

I have the same problem. Also the same thing happens to me with functions. I cannot configure functions in provideFunctions method.

alejandroaap avatar Oct 13 '21 18:10 alejandroaap

I also cannot use the "new style" of providing the remote config. I currently have to provide the compat version for the remote-config. This issue should really be addressed ...

NLueg avatar Nov 26 '21 05:11 NLueg

This bug has been open for 3 months and has not had any response or resolution. Is there any news?

alejandroaap avatar Jan 13 '22 11:01 alejandroaap

This bug has been open for 1 year, 7 months and has not had any response or resolution. Is there any news? 🙏

kapik avatar Aug 23 '23 14:08 kapik