4

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 ?

14
  • Did you add google-services.json to the project? Apr 11, 2019 at 4:45
  • @MehdiDehghani Yes, I did add google-services.json ,and I Set the Build Action to GoogleServicesJson
    – Una
    Apr 11, 2019 at 5:13
  • Do you want to do Firebase Cloud Messaging? Apr 11, 2019 at 5:51
  • 2
    @G.hakim I'm wondering (in your mentioned link) did you copy and paste the Microsoft's doc or they did? Apr 11, 2019 at 12:09
  • 2
    @G.hakim I can say, most of your main content is exact same as Microsoft's one. even pictures, that means you didn't try that yourself (maybe you did, but it's not obvious, based on the content of your article). anyway here is not right place to discuss about that. Apr 11, 2019 at 12:35

1 Answer 1

11

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.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.