如何从 Firebase 云消息接收推送通知 [英] How to receive push notifications from Firebase cloud messaging

查看:29
本文介绍了如何从 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 云消息接收推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆