How to receive push notifications from Firebase cloud messaging(如何从 Firebase 云消息接收推送通知)
问题描述
我已经能够从 Firebase(Firebase 云消息传递)向我的 Android 应用程序发送推送通知.
I have been able to send push notification from Firebase (Firebase cloud messaging) into my android application.
我想知道我是否可以在 c# (.net) 中构建一个应用程序,该应用程序将像在 Android 应用程序中一样接收来自 firebase 的通知.
I wanted to know if I can build an app in c# (.net) that will receive notification from firebase as in Android application.
到目前为止,我找到了发送通知的示例,但实际上没有一个示例演示了如何在 c# 桌面应用程序中接收通知.
So far, I found examples that send the notification but none of them actually have demonstrated how to received the notification in c# desktop application.
如果有任何关于接收通知或任何代码片段的文档将不胜感激.
If there are any documentation on receiving notification or any code snippet will be much appreciated.
提前致谢
推荐答案
.NET 桌面应用程序不支持接收 FCM 通知.该平台没有FCM SDK,有线协议没有文档.
There is no support for receiving FCM notifications in a .NET desktop application. There is no FCM SDK for the platform, and the wire protocol is undocumented.
支持 在 Android 或 iOS 上的 Xamarin 应用上接收 FCM 通知,但这似乎不是您所追求的.
There is support for receiving FCM notifications on a Xamarin app on Android or iOS, but that doesn't seem to be what you're after.
这篇关于如何从 Firebase 云消息接收推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从 Firebase 云消息接收推送通知


- C#MongoDB使用Builders查找派生对象 2022-09-04
- 输入按键事件处理程序 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01