You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this should be the correct syntax of the application class
package YOUR.PACKAGE.NAME;
import io.flutter.app.FlutterApplication;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;
import io.flutter.plugins.GeneratedPluginRegistrant;
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService;
import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin;//<-- the correct import here
import io.flutter.embedding.engine.FlutterEngine;
public class Application extends FlutterApplication implements PluginRegistrantCallback { @OverRide
public void onCreate() {
super.onCreate();
FlutterFirebaseMessagingService.setPluginRegistrant(this);
}
@OverRide
public void registerWith(PluginRegistry registry) {
FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"));
}
}
The text was updated successfully, but these errors were encountered:
abdulmalekDery
changed the title
your documentation need to be updated to import and parse the correct flutter engine class
[firebase_messaging] your documentation need to be updated to import and parse the correct flutter engine class
Aug 7, 2020
TahaTesser
changed the title
[firebase_messaging] your documentation need to be updated to import and parse the correct flutter engine class
[firebase_messaging] documentation need to be updated to import and parse the correct flutter engine class
Aug 7, 2020
Yes, you're absolutely correct. Today itself I was following those old dead steps as available on the package page and ended up with errors. The readme.md file is so outdated and even example app is so dead. Kindly, update it. It's so confusing for us, at least for me.
this should be the correct syntax of the application class
package YOUR.PACKAGE.NAME;
import io.flutter.app.FlutterApplication;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;
import io.flutter.plugins.GeneratedPluginRegistrant;
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService;
import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin;//<-- the correct import here
import io.flutter.embedding.engine.FlutterEngine;
public class Application extends FlutterApplication implements PluginRegistrantCallback {
@OverRide
public void onCreate() {
super.onCreate();
FlutterFirebaseMessagingService.setPluginRegistrant(this);
}
@OverRide
public void registerWith(PluginRegistry registry) {
FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"));
}
}
The text was updated successfully, but these errors were encountered: