How to migrate the Azure notification hub to Firebase Cloud Messaging?

I used Azure notification hubs with my own .NET backend with support for Apple push notifications and Google cloud messaging. This means that my client application is registered with Apple or Google services, but notifications will be sent to the Notification Hub through the backend and never directly through the provider services.

Now that GCM is no longer supported, I tried to port it to FCM.

In the Firebase console, I created a new project. The project has a name, a public name, a project identifier, and a web API key. All this information is from the general tab.

On the Cloud Messages tab, I’m provided with the server key and sender ID.

Question 1: What do I need to insert into the Azure push notification settings, where my GCM key was used before? Web API key for "General" or server key for "Cloud Messaging"?

Question 2: The Xamarin.Android client application had to provide the β€œGoogle API Project Number” as the sender ID for GCM in order to register for push notifications. Should it now be changed to use the "sender ID" on the Cloud Messages tab in the Firebase console?

+4
source share
1 answer

1. , Cloud Messaging. GCM FCM .

2: . / , .


, Google Developers Console, Firebase Console? , GCM .

0

Source: https://habr.com/ru/post/1656088/


All Articles