bug(remote-config): activate and fetchAndActivate returning false but successful
See original GitHub issuePlugin(s): “@capacitor-firebase/analytics”: “^1.2.0” “@capacitor-firebase/crashlytics”: “^1.2.0” “@capacitor-firebase/performance”: “^1.2.0” “@capacitor-firebase/remote-config”: “^1.2.0-dev.8dd4ad6.1668633721”
Platform(s): Android
Current behavior:
Calling activate
or fetchAndActivate
returns the success callback but the result.booleanValue()
is false
and since it hasn’t been activated requesting any values fails to complete.
Expected behavior:
Calling activate
or fetchAndActivate
then requesting a value succeeds.
Steps to reproduce:
- Make a call to
fetchAndActivate
- Make a call to fetch some kind of value
Related code:
await FirebaseRemoteConfig.fetchAndActivate()
alert((await FirebaseRemoteConfig.getNumber({ key: 'my_number' })).value)
Other information:
I testing on iOS and it works as expected. I double checked my google-services.json
seems to be loaded correctly account to logcat. I also sent a test event using the analytics plugin which was success. Here are some screenshots of what I’m seeing when debugging:
Capacitor doctor:
Latest Dependencies:
@capacitor/cli: 4.5.0
@capacitor/core: 4.5.0
@capacitor/android: 4.5.0
@capacitor/ios: 4.5.0
Installed Dependencies:
@capacitor/cli: 4.5.0
@capacitor/core: 4.5.0
@capacitor/android: 4.5.0
@capacitor/ios: 4.5.0
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Regarding the
success
value:Source
So you already had the up-to-date configs.
I haven’t been able to consistently reproduce this so am closing it.