Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimumFetchIntervalInSeconds argument in the initialize() method is not working for Android #19

Open
hfunescom opened this issue Jan 11, 2021 · 0 comments

Comments

@hfunescom
Copy link

hfunescom commented Jan 11, 2021

Describe the bug
When I set the minimumFetchIntervalInSeconds value on the initialize method, it's not working for Android(The value is not setted so can't fetch de new values from Firebase Remote Config platform).

Example:

FirebaseRemoteConfig.initialize({
minimumFetchIntervalInSeconds: 0,
})

To Reproduce
Steps to reproduce the behavior:

  1. Try setting different values in minimumFetchIntervalInSeconds and compile for Android. You will see that these values are not setted. I mean, the Firebase Remote Config Console values are not setted in the app.

Expected behavior
I expect to get the new Firebase Remote Config Console values but they are not getted.

Smartphone (please complete the following information):

  • Device: Motorola Moto G9 Play
  • OS: Android 10

Possible Solution
I was debugging the app, and saw that in the FirebaseRemoteConfig.java file, line 58(Method initialize), there is the next line:
.setFetchTimeoutInSeconds(minFetchTimeInSecs)
I replaced that line for this, and the plugin worked perfectly:
.setMinimumFetchIntervalInSeconds(minFetchTimeInSecs)

It's setting the TimeOut value with the minFetchTimeInSect instead of setting the MinimumFetchIntervalInSeconds value.

Hope you can understand what I tried to explain. Please, let me know if you need me to explain anything else.

Best regards, Hernán!

@hfunescom hfunescom changed the title minimumFetchIntervalInSeconds argument is not working in Android minimumFetchIntervalInSeconds argument in the initialize() method is not working for Android Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant