Skip to content

Commit da7f176

Browse files
committed
Merge branch 'patch-1' of https://github.com/samirbanjanovic/azure-docs into server-key-ext
2 parents 6d37a08 + 57366b7 commit da7f176

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

articles/notification-hubs/android-sdk.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ The first step is to create a project in Android Studio:
8282

8383
8. Copy and save the **Server key** for later use. You use this value to configure your hub.
8484

85+
9. If you do not see a **Server key** on the firebase Cloud Messaging tab, follow these additional steps.
86+
1. Click on the three-dots menu of the "Cloud Messaging API (Legacy) 🚫 Disabled" Heading
87+
2. Follow the offered link to "Manage API in Google Cloud Console".
88+
3. In google cloud console, press the button to enable the googlecloudmessaging API.
89+
3. Wait a few minutes.
90+
4. Go back to your firebase console project Cloud Messaging tab, and refresh the page.
91+
5. See that the Cloud Messaging API header has changed to "Cloud Messaging API (Legacy) ✅ Enabled" and now shows a Server Key.
92+
93+
:::image type="content" source="media/android-sdk/notification-hubs-enable-firebase-cloud-messaging-legacy-api.png" alt-text="Enable Cloud Messaging API (Legacy)":::
94+
8595
## Configure a notification hub
8696

8797
1. Sign in to the [Azure portal](https://portal.azure.com/).
222 KB
Loading

0 commit comments

Comments
 (0)