简体   繁体   中英

Android FCM Notification Not Popping Up

In my Android app, the Push Notification Firebase Cloud Messaging is only received on the device when the user is not in the app at the time of sending - The message is received, but not displayed. I made a console.writeline to log if the message was received, and it was, but no sound was made and the notification didn't pop up.

Some background:

  • I am testing on an emulator
  • I am using the FirebasePushNotification Plugin (as it is a Xamarin.Forms project and I want to be able to do cross-platform setup
  • I have downloaded GoogleServicesJSON, set build action, etc.

I think you are sending the Data messages ,When using this type of message you are the one providing the UI and handling when push notification is received on an Android device.

So you should define and create your notification yourself in the receive callback.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM