From 5dfd1673a5c54e46467ce7c7345ea89a38583a3a Mon Sep 17 00:00:00 2001 From: Jude Kwashie Date: Thu, 10 Sep 2026 09:16:00 +0000 Subject: [PATCH] fix(remote_config,ios): emit onConfigUpdated events on the platform thread Firebase's config-update listener is not guaranteed to run on the main queue, and Flutter rejects platform-channel messages from other threads. --- .../firebase_remote_config/FirebaseRemoteConfigPlugin.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/firebase_remote_config/firebase_remote_config/ios/firebase_remote_config/Sources/firebase_remote_config/FirebaseRemoteConfigPlugin.swift b/packages/firebase_remote_config/firebase_remote_config/ios/firebase_remote_config/Sources/firebase_remote_config/FirebaseRemoteConfigPlugin.swift index b904556869ab..59856a16fa83 100644 --- a/packages/firebase_remote_config/firebase_remote_config/ios/firebase_remote_config/Sources/firebase_remote_config/FirebaseRemoteConfigPlugin.swift +++ b/packages/firebase_remote_config/firebase_remote_config/ios/firebase_remote_config/Sources/firebase_remote_config/FirebaseRemoteConfigPlugin.swift @@ -211,7 +211,10 @@ public class FirebaseRemoteConfigPlugin: NSObject, FlutterPlugin, FlutterStreamH return } if let update { - events(Array(update.updatedKeys)) + let updatedKeys = Array(update.updatedKeys) + DispatchQueue.main.async { + events(updatedKeys) + } } } return nil