[firebase_messaging] PlatformException(channel-error) on iOS Simulator 17.5 with Firebase 3.12.0 #17138
Open
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: core
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Core, Messaging
Which platforms are affected?
iOS
Description
Firebase.initializeApp
fails withPlatformException(channel-error, Unable to establish connection on channel., null, null)
on iOS 17.5 simulator (Xcode 15.4). The app runs fine without Firebase, showing "STAlert" and "Waiting for PLC Alert…". This persists across simulator versions (17.5 and 17.4) and Firebase SDK versions (11.8.0 with 3.12.0/15.2.3, 10.25.0 with 2.24.2/14.7.10). Suspect a simulator-specific issue with the Firebase iOS SDK, as all configs (.p8
key,GoogleService-Info.plist
, entitlements) are correct and Xcode builds cleanly. No physical device available for testing.Reproducing the issue
Create a Flutter app with
firebase_core: ^3.12.0
andfirebase_messaging: ^15.2.3
.Configure Firebase for iOS:
GoogleService-Info.plist
toRunner
> "Copy Bundle Resources".Runner.entitlements
withaps-environment: development
..p8
key (sandbox + production) to Firebase Console > Cloud Messaging > Apple app configuration.Update
main.dart
:Run ios 17.5 simulator
flutter run -d "iPhone 15 Pro Max"
Observe: PlatformException(channel-error, Unable to establish connection on channel., null, null) in logs.
Firebase Core version
3.12.0 (also tested 2.24.2)
Flutter Version
3.29.0 (stable)
Relevant Log Output
Flutter dependencies
dependencies:
flutter:
sdk: flutter
firebase_core: ^3.12.0
firebase_messaging: ^15.2.3
Full run_log.txt and flutter doctor -v available on request.
Additional context and comments
.p8
key updated to sandbox + production, uploaded to Firebase.Runner.entitlements
(aps-environment: development
).The text was updated successfully, but these errors were encountered: