Hi, I'm using Xamarin.Firebase.Messaging version: 71.1740.1 and I want to implement push notification, I change my code to OnNewTocken() method because of the deprecated OnTockenRefresh(). I use the google-service.json properly and all the androidmanifest stuff but the notifications doesnt work. Any idea?. Hopefully I get the tocken but when I try to send a test notification from firebase console that never comes. Are you facing that problem, too?
Answers
Have you added these two filters on your service class:
This documentation demonstrates how to integrate Azure notification hud in the Android project. The setup part could be helpful:
https://docs.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-push-notifications-android-gcm#set-up-notification-hubs-in-your-project
I tried this with a legacy
google-service.json
but it failed. Finally, I make it work by creating a new Android project(new google-service.json and new package name) on the FCM portal. You could have a try with a new google-service.json file.