This article will walk you through setting up push notifications for your Android based game using Google's Firebase.
Set Up a Firebase Project
The Skillz SDK for Android uses Firebase Messaging to power push notifications, so you'll need to set up a Firebase project by following the instructions depending on whether your game is made with Unity or natively.
Skillz supports Unity Firebase 6.1.1.
If you plan to integrate another Firebase SDK, such as Crashlytics, in Unity, please follow Google's instructions on how to Add Firebase to your Unity Project. Otherwise, follow the instructions for Native Android.
Please follow Google's instructions on how to Add Firebase to your Android Project. Follow along with Option 1: Add Firebase using the Firebase console
Upload the FCM key to Skillz
Go to https://console.firebase.google.com/, and select your project. Select Settings (top left corner of the console)
- Select Cloud messaging tab.
- Copy the server key.
- Go to your Skillz developers console and select your application.
- Select the Push Notification tab on your left.
- In the "Android FCM keys" section, paste your server key to one of the blank text fields, and press the "Submit" button:
Sending Test Notifications
Sending test notifications may not work immediately as it can take up to 24 hours for your FCM key to be transferred to our push notification backend.