I've added firebase messaging to my Flutter project.
Works fine on iOS, getting an error when trying to run on Android:
Android dependency 'androidx.localbroadcastmanager:localbroadcastmanager' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution
My configuration:
in pubspec.yaml
cloud_firestore: ^0.11.0+2
firebase_auth: ^0.11.1
firebase_messaging: ^5.0.1+1
in android/build.gradle
classpath 'com.google.gms:google-services:4.2.0'
in android/app/build.gradle
implementation 'com.google.firebase:firebase-core:16.0.9'
in gradle.properties
android.useAndroidX=true
android.enableJetifier=true