问题
I'm need to send my Web API notification when user order something on my app, but i dont know how to send Notification to Firebase on Xamarin.Forms.
Does anyone have some sample or source code to follow ?
回答1:
You need to set up the Notification in specific Xamarin.Android project and Xamarin.iOS project.
For Xamarin.Android:
You can have a look at official document here and Remote Notifications with Firebase Cloud Messaging, there are step-by-step explanations of how to use Firebase Cloud Messaging
to implement remote notifications (also called push notifications) in a Xamarin.Android
application.
For Xamarin.iOS:
You can use Xamarin.Firebase.iOS.CloudMessaging to send iOS push notification by FCM.
There are also steps here: Firebase Cloud Messaging on iOS
Firebase document for push notification to native app is here: cloud-messaging
来源:https://stackoverflow.com/questions/59496135/xamarin-forms-using-firebase-cloud-message-to-send-notification