GCM到Xamarin的FCM [英] GCM to FCM for Xamarin

查看:178
本文介绍了GCM到Xamarin的FCM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xamarin对GCM(Google云消息传递)提供了预定义的支持,在 https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/remote_notifications_in_android/



目前Google从GCM迁移到FCM(Firebase云消息传递)是否可以与Xamarin一起使用,或者有任何其他的文档可以将FCM与Xamarin集成?



Firebase中提供的所有功能都可以在Xamarin应用程序中使用吗?

解决方案


是否可以和Xamarin一起使用?

不,不。但是您仍然可以使用GCM,因为Google尚未宣布GCM支持刚刚停止。他们只是宣布 FCM是最新版本的GCM


有没有其他的文件可以将FCM与Xamarin集成?

,Xamarin没有关于如何将FCM与Xamarin.Android应用程序整合的指南。


Firebase中提供的所有功能都可以在Xamarin应用程序中使用?


是的,它们可以与Xamarin一起使用。但在这一刻,我们必须等到Xamarin为FCM java库(jar)提供官方绑定(dll),并且他们可能会在他们的博客关于如何将其与我们的应用程序集成。



此时,使用Xamarin进行开发的最好方法是使用GCM 。另一件你可以做的事情就是创建自己的自己的绑定 a>,并使用 FCM java库并使用 Google的Android教程(in Java)



最后一个选项可能会起作用,当官方的Xamarin绑定来了,你将不得不改变很多的代码,以使其与谷歌和Xamarin即将到来的更新。



编辑:Xamarin已经开始通过金块推出官方(预发布)绑定: https://www.nuget.org/packages/Xamarin.Firebase.Common/



更多信息在:支持Google Firebase - Xamarin论坛


Xamarin has the predefined support to GCM (Google Cloud Messaging) which was explained in https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/remote_notifications_in_android/

As currently Google migrated from GCM to FCM (Firebase Cloud Messaging) does it work with Xamarin with same instruction or there any other Docs for integrating FCM with Xamarin?

Does all features provided in Firebase can be used in Xamarin App?

解决方案

does it work with Xamarin with same instruction?

No, it doesn't. But you can still work with GCM since Google hasn't announced that GCM support will stop just now. They just posted that FCM is the newest version of GCM.

there any other Docs for integrating FCM with Xamarin?

Not just yet, Xamarin doesn't have a guide about how to integrate FCM with your Xamarin.Android app.

Does all features provided in Firebase can be used in Xamarin App?

Yes, they can be used with Xamarin. But at this moment we have to wait until Xamarin provides us with official bindings(dlls) for FCM java libraries(jars) and probably they will post something in their blog about how to integrate this with our apps.

At this point, the best thing you can do while developing with Xamarin is use GCM. The other thing you can do, is create your own bindings with FCM java libraries and use Google's tutorial for android (in java)

While the last option will probably work, when the official Xamarin bindings come you will have to change a lot of code in order to make it work with upcoming updates from Google and Xamarin.

EDIT: as pointed out by @SørenBoisen Xamarin has started to rollout official(pre-release) bindings via nugget: https://www.nuget.org/packages/Xamarin.Firebase.Common/

More info at: Support for Google Firebase — Xamarin Forums

这篇关于GCM到Xamarin的FCM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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