Firebase Cloud Messaging (FCM) Api Key for Azure Notification Hub

Viewed 428

I'm creating a Xamarin project to test Azure Notification Hub, but I'm having trouble going through the steps in this article

Under the section "Create a Firebase project and enable Firebase Cloud Messaging" Step 6 is obsolete as Google seems to have changed their model to obtain a Server Key, or the Server Key does not apply to FCM.

Can anyone shed a light on how to obtain an Api key for Azure Notification Hub?

2 Answers

If you go to the Build section, Authentication menu item, and then click the 'Get Started' button, then navigate back to the Project Settings/General tab, you should see the API key. EDIT: This is not the proper key for the Azure Notification Hub. See my comment below for the correct key.

expanding DrDave's comment

From https://console.firebase.google.com/project/--your_project_name--/settings/cloudmessaging

  • Click on the three-dots menu of the "Cloud Messaging API (Legacy) Disabled" Heading
  • Follow the offered link to manage in google cloud console, and there press the button to enable the googlecloudmessaging API
  • Wait a few minutes
  • Go back to your Firebase console Cloud Messaging Tab, and refresh.
  • See that the Cloud Messaging API header has changed to "Cloud Messaging API (Legacy) ✅ Enabled" and that a Server Key is now shown.
Related