0

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))

1
  • Are you using Firebase in your project? Can you share pubspec.yaml Commented Jul 4, 2022 at 17:41

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

If you make any changes in pubspec.lock and run flutter clean command it will reinstall and set the value again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.