Apr 10, 2020 To get an API key: Go to the Google Cloud Platform Console. Click the project drop-down and select or create the project for which you want to add an API key. Click the menu button and select APIs & Services Credentials. On the Credentials page, click Create credentials API key. The API key created dialog displays your newly created API key. This means that any instance can generate a token to be used with any other instance within the circle of trust. When a Service instance receives a REST API call authenticated by a signed token, it will use the root certificate that includes the public key to verify that its issuer is in the circle of trust.
A Google Firebase Server Key is required for all Android mobile apps and Chrome apps & extensions. It is optional for Amazon apps.
A Firebase Server Key and Firebase Sender ID are required in order to send push notifications to Android mobile app devices. /battlefield-bad-company-2-key-code-generator.html.
The goal of this section is to provision your Firebase Server Key and Firebase Sender ID for use in OneSignal.
If you already have an FCM project you would like to use with OneSignal, you will need to retrieve your Sender ID and Firebase Cloud Messaging token. You may then skip to Step 2.
Visit the Firebase Console and sign in with your Google account.
Click CREATE NEW PROJECT or select an existing one below.
Enter a project name and press CREATE PROJECT.
Click the gear icon in the top left and select Project settings.
Select the CLOUD MESSAGING tab.
Save the two values listed under Server key and Sender ID.
In the OneSignal dashboard, select your app from the All Apps page, then go to Settings. Under Native App Platforms, click Google Android.
Paste your Firebase Server Key and Firebase Sender ID into the fields and click Save.
Done! You now have a key to send push notifications from your app. 🥳
Next, install the OneSignal SDK in your app. If you need help, we have a few SDK-specific guides:
Android SDK Setup |
Amazon SDK Setup |
Chrome Extension SDK Setup |
Mobile Push Quickstart |