Skip to content

[firebase_messaging] PluginRegistrantCallback is not set on Android #2077

@creativecreatorormaybenot

Description

Fatal Exception: java.lang.RuntimeException
Unable to create service io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService: 
java.lang.RuntimeException: PluginRegistrantCallback is not set.

This is caused by:

Caused by java.lang.RuntimeException: PluginRegistrantCallback is not set.
       at io.flutter.plugins.firebasemessaging.
FlutterFirebaseMessagingService.executeDartCallbackInBackgroundIsolate(FlutterFirebaseMessagingService.java)
       at io.flutter.plugins.firebasemessaging.
FlutterFirebaseMessagingService.onCreate(FlutterFirebaseMessagingService.java)

This happens on Android when running a Flutter app built with firebase_messaging: 6.0.9 and Flutter 1.15.4-pre.199.


This also happens every time calling FirebaseMessaging.configure in the Flutter app when running on Android:

PlatformException(error, PluginRegistrantCallback is not set., null)
  StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
  MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
<asynchronous suspension>
  MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
  FirebaseMessaging.configure (package:firebase_messaging/firebase_messaging.dart:130:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)platform: androidIssues / PRs which are specifically for Android.plugin: messagingtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions