MissingPluginException(No implementation found for method Messaging#requestPermission on channel firebase\_messaging

Issue

final NotificationSettings settings  await messaging.requestPermission();

I am getting this error when calling requestPermission() method of firebase messaging.

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method Messaging#requestPermission on channel plugins.flutter.io/firebase_messaging) E/flutter ( 7180): #0 convertPlatformException (package:firebase_messaging_platform_interface/src/method_channel/utils/exception.dart:13:5) E/flutter ( 7180): #1 MethodChannelFirebaseMessaging.requestPermission (package:firebase_messaging_platform_interface/src/method_channel/method_channel_messaging.dart:286:13) E/flutter ( 7180):

In build.gradle i implemented ‘com.google.firebase:firebase-messaging’

implementation platform(‘com.google.firebase:firebase-bom:28.3.0’)

Solution

I had the same issue. Fixed it updating to the last version:

firebase_core: ^1.10.0
firebase_messaging: ^11.1.0

Answered By – matiszz

Leave a Comment