Open HarithaMadhushanka opened 10 hours ago
Hi @HarithaMadhushanka , thanks for the report. I'm unable to reproduce this issue on the latest version of firebase_remote_config
: 5.1.3. Can you update your version and try again?
Hi @HarithaMadhushanka , thanks for the report. I'm unable to reproduce this issue on the latest version of
firebase_remote_config
: 5.1.3. Can you update your version and try again?
This issue is being encountered intermittently.
I am using the firebase_remote_config
version 4.3.8
in my mobile app. Unfortunately, I cannot upgrade my Flutter SDK version beyond 3.0.0
due to other plugins in my application that depend on a Flutter SDK version between ">=2.16.1 <3.0.0"
(as specified in the pubspec.yaml
).
However, I will try upgrading my firebase_remote_config
version to 5.0.2
and see if that resolves the issue.
Upon reviewing the source code of the latest version (5.1.3
), I noticed that the fetchAndActivate
method has not changed compared to the version 4.3.8
code. However, I did notice some other differences in the FLTFirebaseRemoteConfigPlugin.m
file.
I will add my update in this thread if version 5.0.2
resolves this issue. Thanks!
Is there an existing issue for this?
Which plugins are affected?
Remote Config
Which platforms are affected?
iOS
Description
Issue Summary:
We are encountering a FirebaseException when calling the
await remoteConfig.fetchAndActivate();
method within our Flutter app using thefirebase_remote_config
plugin (version 4.3.8). The exception details are as follows:Code Snippet:
Error Logs:
For Reference (Screenshot when debugging):
Issue Details
Upon investigating the issue, I noticed that a similar problem was previously reported and resolved in Issue #6196. In that case, the error code returned was
999
, and a fix was implemented here, which retries thefetchAndActivate
call if the error code is999
.This fix is also present in the version (4.3.8) of the
firebase_remote_config
plugin that we are using. However, the issue we are encountering now returns a different error code (internal
instead of999
), which causes the retry logic to be bypassed, and thus the fix does not work in our case.Specifically, the retry logic checks if the error code is
999
:Since our error code is
internal
, this condition fails, and the retry logic is not triggered.Request for Fix
Could you please look into this issue and consider updating the logic to account for error codes like internal or other potential error codes? Currently, the fix only handles the specific case for error code
999
, but our issue seems to fall under a broader category of errors.It would be helpful if the retry logic could be extended to handle
internal
or similar errors to prevent these fetch requests from being cancelled and allow the operation to complete successfully.Flutter Doctor
for reference:Reproducing the issue
Prerequisites:
3.24.3
4.3.8
Steps to Reproduce:
firebase_remote_config
plugin.await remoteConfig.fetchAndActivate();
method in your app.FirebaseException
(as shown in the code snippet above).fetchAndActivate
method is invoked.Expected Outcome:
fetchAndActivate
method should successfully fetch the remote configuration and activate it without any errors.Actual Outcome:
FirebaseException
with the following details:internal
cancelled
firebase_remote_config
internal
rather than999
.Firebase Core version
2.24.2
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml firebase_core: ^2.14.0 firebase_remote_config: ^4.3.8 ```
Additional context and comments
No response