I am using firebase_messaging: ^6.0.16 package, and I did everything that was required of me, and after I sending the firebase message, I got this error :
FlutterFcmService(12133): Fatal: Failed to find callback
I searched for this issue but got nothing
I found one solution but it did not help me, solution
any help, thank you...
Following this answer helped me solve the issue: https://stackoverflow.com/a/64483134/2931049
Please note the onBackgroundMessage part. Not implementing it as well as the others gave me the Failed to find callback error
Replace GeneratedPluginRegistrant.registerWith(registry);
with
FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"));
Please check this code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With