Xamarin.Forms using Firebase Cloud Message to send notification [duplicate]

我的未来我决定 提交于 2021-02-11 13:49:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!