Skip to content

Commit 0c7d24f

Browse files
committed
fix: Properly pass error code and message from iOS side
1 parent af9ab71 commit 0c7d24f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/firebase_remote_config/firebase_remote_config/ios/Classes/FLTFirebaseRemoteConfigPlugin.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)flutter
5757
NSError *_Nullable error) {
5858
if (code == nil) {
5959
details = [FLTFirebaseRemoteConfigUtils ErrorCodeAndMessageFromNSError:error];
60+
code = [details valueForKey:@"code"];
61+
message = [details valueForKey:@"message"];
6062
}
6163
if ([@"unknown" isEqualToString:code]) {
6264
NSLog(@"FLTFirebaseRemoteConfig: An error occurred while calling method %@", call.method);

0 commit comments

Comments
 (0)