如何从 Firebase 云消息接收推送通知

How to receive push notifications from Firebase cloud messaging(如何从 Firebase 云消息接收推送通知)
本文介绍了如何从 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 云消息接收推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)