Flutterfire: Unable to log event: analytics library is missing

Created on 29 May 2020  路  5Comments  路  Source: FirebaseExtended/flutterfire

Hello everyone, in FCM I can not get notification onMessage in Android device but in IOS everything works good. Every time I send notification on foreground I get this message "Unable to log event: analytics library is missing" but if I send the notification and the app is in background it works. Do anyone knows have to fix this issue ?

Stale customer-response closed-by-bot

Most helpful comment

Shouldn't this be mentioned in the firebase_messaging README?

https://pub.dev/packages/firebase_analytics#-readme-tab-

All 5 comments

Hi @NSO-Elturki
Running the official example on Android

I/flutter (31533): onMessage: {notification: {title: test, body: thanos}, data: {}}

Make sure you've the following dependencies and firebase_messaging: ^6.0.16

dependencies {
    def multidex_version = "2.0.1"
    implementation "androidx.multidex:multidex:$multidex_version"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
    implementation 'com.google.firebase:firebase-messaging:20.1.7'
}
apply plugin: 'com.google.gms.google-services'

Thank you

Shouldn't this be mentioned in the firebase_messaging README?

https://pub.dev/packages/firebase_analytics#-readme-tab-


Hey @NSO-Elturki. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!


Since there haven't been any recent updates here, I am going to close this issue.

@NSO-Elturki if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Hi @NSO-Elturki
Running the official example on Android

I/flutter (31533): onMessage: {notification: {title: test, body: thanos}, data: {}}

Make sure you've the following dependencies and firebase_messaging: ^6.0.16

dependencies {
    def multidex_version = "2.0.1"
    implementation "androidx.multidex:multidex:$multidex_version"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
    implementation 'com.google.firebase:firebase-messaging:20.1.7'
}
apply plugin: 'com.google.gms.google-services'

Thank you

for me I'm facing the same problem now and your solution is not meant to solve the problem, I don't want to include firebase analytics. And it is working in another app I have perfectly without need of firebase analytics to be included. Anyway I will update this post when I recognise my mistake.

Was this page helpful?
0 / 5 - 0 ratings