Skip to content

Commit 01f8cc7

Browse files
authored
Merge pull request #98579 from chrisfcarroll/main
Update includes/notification-hubs-enable-firebase-cloud-messaging
2 parents 01dc122 + cb2bcd8 commit 01f8cc7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Loading

includes/notification-hubs-enable-firebase-cloud-messaging.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,14 @@
5252
![Select Project Settings](./media/notification-hubs-enable-firebase-cloud-messaging/notification-hubs-firebase-console-project-settings.png)
5353
4. If you haven't downloaded the google-services.json file into the **app** folder of your Android Studio project, you can do so on this page.
5454
5. Switch to the **Cloud Messaging** tab at the top.
55-
6. Copy and save the **Server key** for later use. You use this value to configure your hub.
55+
6. Copy and save the **Server key** for later use. You use this value to configure your hub.
56+
7. If you do not see a **Server key** on the firebase Cloud Messaging tab, follow these additional steps.
57+
1. Click on the three-dots menu of the "Cloud Messaging API (Legacy) 🚫 Disabled" Heading
58+
2. Follow the offered link to "Manage API in Google Cloud Console".
59+
3. In google cloud console, press the button to enable the googlecloudmessaging API.
60+
3. Wait a few minutes.
61+
4. Go back to your firebase console project Cloud Messaging tab, and refresh the page.
62+
5. See that the Cloud Messaging API header has changed to "Cloud Messaging API (Legacy) ✅ Enabled" and now shows a Server Key.
63+
64+
![Screenshot showing the Enable Cloud Messaging API (Legacy) tab.](./media/notification-hubs-enable-firebase-cloud-messaging/notification-hubs-enable-firebase-cloud-messaging-legacy-api.png)
65+

0 commit comments

Comments
 (0)