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 Answer
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.
1 Comment
Sufyan Kamil
If you make any changes in pubspec.lock and run flutter clean command it will reinstall and set the value again.