13

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?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
arvindwill
  • 1,960
  • 1
  • 23
  • 39

2 Answers2

10

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

Santiago Hernández
  • 5,438
  • 2
  • 26
  • 34
  • thanks @santiago , as suggested it is better to wait for xamarin updates, as they might be started working on bindings. – arvindwill May 29 '16 at 06:09
  • 2
    Just wanted to add that Xamarin has begun to flesh out the FCM bindings on Android: http://forums.xamarin.com/discussion/comment/201052/ – Søren Boisen Aug 22 '16 at 16:57
  • Unfortunately GCM server and client APIs will be removed as soon as April 11, 2019 (announced on the day of the writing of this comment). – Luís Gonçalves Apr 11 '18 at 15:13
2

The Firebase bindings are now available for Xamarin Android as a nuget package here:

checkmate711
  • 3,301
  • 2
  • 35
  • 45