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

查看:536
本文介绍了如何从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.

预先感谢

推荐答案

不支持接收 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.

在Xamarin应用上接收FCM通知在Android或iOS上,但这似乎并不是您想要的。

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天全站免登陆