Syed Saif
Syed Saif

Reputation: 13

PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null)) WHEN setting up notifications flutter

Hello I am gettting error when i have implemented Firebase notificattions in App PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null))

Upvotes: 0

Views: 6462

Answers (1)

mselmany
mselmany

Reputation: 434

I encountered the same issue. In my case, changing the version of firebase_core_platform_interface in pubspec.lock file resolved the issue. It was like the following:

  firebase_core_platform_interface:
    dependency: transitive
    description:
      name: firebase_core_platform_interface
      url: "https://pub.dartlang.org"
    source: hosted
    version: "4.4.3"

And I've changed it to the following:

  firebase_core_platform_interface:
    dependency: transitive
    description:
      name: firebase_core_platform_interface
      url: "https://pub.dartlang.org"
    source: hosted
    version: "4.2.4"

After the change, don't forget to make flutter clean.

Upvotes: 3

Related Questions