Closed Thientran2910 closed 10 months ago
Hi @Thientran2910, please share the full stack trace. In the future, please do not share screenshots of crashes as they are not discoverable.
@danagbemava-nc
The problem only occurs when I deploy to product on Google Play Store
I get trace logs from Sentry with more then 3000 devices( includes Samsung, Xiaomi decice, Android 13, 12, 11, 10...) has been issue:
FirebaseException: [firebase_remote_config/internal] internal remote config fetch error
File "message_codecs.dart", line 652, in StandardMethodCodec.decodeEnvelope
File "platform_channel.dart", line 310, in MethodChannel._invokeMethod
File "<asynchronous suspension>"
File "method_channel_firebase_remote_config.dart", line 150, in MethodChannelFirebaseRemoteConfig.fetchAndActivate
File "<asynchronous suspension>"
File "firebase_remote_config.dart", line 89, in FirebaseRemoteConfig.fetchAndActivate
File "<asynchronous suspension>"
File "remote_config.dart", line 53, in RemoteConfig.fetchAndActivate
File "<asynchronous suspension>"
File "remote_config.dart", line 24, in RemoteConfig.init
Hi @Thientran2910, can you check the network state of the devices that are experiencing this issue to see whether or not they're running on wifi or mobile data? Also, does this work as expected when you run the app in release mode locally?
same issues
@danagbemava-nc Release mode locally Working fine, Firebase distribution also working fine. I'm deployed google play and until NOT working. I'm checked at 3 physical devices: 2 samsung + 1 xiaomi all NOT working. Also, similar error messages on sentry appear a lot
Report from Sentry with remote_config:
FirebaseException: [firebase_remote_config/internal] internal remote config fetch error
File "message_codecs.dart", line 652, in StandardMethodCodec.decodeEnvelope
File "platform_channel.dart", line 310, in MethodChannel._invokeMethod
File "
Hi @Thientran2910, can you check https://stackoverflow.com/a/54603795 to see if it helps?
@danagbemava-nc I tried but it didn't solve the problem. I searched a lot for solutions in google and stackoverflow. I've tried it all and it doesn't work. I have checked the correct API Service + API key + client ID, all are enabled and correct with google-service.json My application is using sign in with google and it is also working fine. This bug is strange and confusing as it runs fine in local release.
Hi @Thientran2910, have you tried reaching out to firebase support to see if they can offer any assistance? The plugin doesn't do anything different in release mode than it does in any other mode. Considering that this only happens when you release the app to playstore, there may be something on the firebase side that may be causing this.
A lot of the following reports appeared in my crashlytics:
report 1
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: [firebase_remote_config/internal] internal remote config fetch error
00 pc 0x56eee7 com.test.example (StandardMethodCodec.decodeEnvelope [message_codecs.dart:652]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
01 pc 0x5eaf0b com.test.example (MethodChannel._invokeMethod [platform_channel.dart:310]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
02 pc 0x5931b3 com.test.example (_SuspendState._createAsyncStarCallback.
[async_patch.dart:379]) (BuildId: 5640f66f9c22027f4067e263e4177e5e) 03 pc 0x21ccbf com.test.example (_FutureListener.handleValue [zone.dart:1661]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
04 pc 0x59a187 com.test.example (Future._propagateToListeners.handleValueCallback [future_impl.dart:840]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
05 pc 0x21b9e3 com.test.example (Future._propagateToListeners [future_impl.dart:869]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
06 pc 0x21b527 com.test.example (Future._completeWithValue [future_impl.dart:641]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
07 pc 0x21b493 com.test.example (Future._asyncCompleteWithValue.
[future_impl.dart:715]) (BuildId: 5640f66f9c22027f4067e263e4177e5e) 08 pc 0x21b123 com.test.example (_microtaskLoop [schedule_microtask.dart:40]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
09 pc 0x5994c3 com.test.example (_startMicrotaskLoop [schedule_microtask.dart:49]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
10 pc 0x21b093 com.test.example (_startMicrotaskLoop [schedule_microtask.dart:44]) (BuildId: 5640f66f9c22027f4067e263e4177e5e)
report 2
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(firebase_remote_config, Unable to connect to the server. Check your connection and try again., null, null)
00 pc 0x68bde3 com.test.example (FirebaseCrashlytics.recordError [firebase_crashlytics.dart:119]) (BuildId: 37794ab951518c9ea101056aff89df3e)
01 pc 0x5f71a7 com.test.example (main.
[main.dart:91]) (BuildId: 37794ab951518c9ea101056aff89df3e) 02 pc 0x63c7d7 com.test.example (PlatformDispatcher._dispatchError [platform_dispatcher.dart:1248]) (BuildId: 37794ab951518c9ea101056aff89df3e)
03 pc 0x28b3e3 com.test.example (_onError [hooks.dart:145]) (BuildId: 37794ab951518c9ea101056aff89df3e)
04 pc 0x28b413 com.test.example (_onError [hooks.dart:143]) (BuildId: 37794ab951518c9ea101056aff89df3e)
@danagbemava-nc I asked firebase support. Waiting reply.
I have the same issue @Thientran2910. While debugging I tried this (instead of just calling fetchAndActivate) and it worked but it's a bad solution.
await remoteConfig.activate();
await Future.delayed(const Duration(seconds: 1));
await remoteConfig.fetchAndActivate();
Looking forward for a fix from Firebase.
Hey @Thientran2910. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@Thientran2910 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Still same issue on android. iOS is working fine.
Hello there, I have the same issue on Android, iOS is working without any problem
Bug report
I run the app in debug and release mode in APK and everything works fine. Only when I release the app on Google Play I get an error. App released on ios still works fine Sentry bugs report: