Member-only story
Solved — Calling Firebase.initializeApp() returns ‘Unable to establish connection on channel’
'[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)'
Sep 12, 2022
Solve the problem by upgrading all firebase dependencies to the latest version using flutter pub outdated
and flutter pub upgrade firebase_...
.
I encountered this issue after adding the firebase_messaging
plugin v11.4.4. Might be related to the change in firebase_core_platform_interface
.