Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix " [FirebaseMessaging] Unable to log event: analytics library is missing" in Xamarin.Android

I want to do FCM in Xamarin.Android.

So I following this tutorial (Xamarin.Android)Remote Notifications with Firebase Cloud Messaging to do.

but my phone can't receive message.

my output get :

[FirebaseMessaging] Unable to log event: analytics library is missing

I had add two NuGet:

  1. Xamarin.GooglePlayServices.Base.
  2. Xamarin.Firebase.Messaging.

I tried this Xamarin.Android

Updating Xamarin.Build.Download to 0.4.11

but it's still not working...

What can I do ?

like image 719
Una Avatar asked Dec 23 '22 23:12

Una


1 Answers

I am at the same step and faced the same situation, until I read forward and found this:

On the Android device (or emulator), background the app by tapping the Android Overview button and touching the home screen. When the device is ready, click SEND MESSAGE in the Firebase Console:

By doing it that way the message can be seen at the notification bar: enter image description here

I am new to this but I am realizing that the purpose of this first test is to receive the message when the app is not in the foreground... See also: Send Message paragraph in the Remote Notifications with Firebase Cloud Messaging tutorial.

like image 161
Lupa Avatar answered Dec 25 '22 22:12

Lupa