GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Join GitHub today
Dec 17, 2019 Create Custom Tokens. Firebase gives you complete control over authentication by allowing you to authenticate users or devices using secure JSON Web Tokens (JWTs). You generate these tokens on your server, pass them back to a client device, and then use them to authenticate via the signInWithCustomToken method.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Commentscommented Jun 7, 2016
commented Jun 7, 2016
closed this Jun 7, 2016
added the type: question label Jun 7, 2016
commented Jun 7, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Do not follow this guide if you are using OneSignal with a website or WordPress blog.
A Google Firebase Server Key is required for all Android mobile apps and Chrome apps & extensions. It is optional for Amazon apps.
What is a Firebase Server Key?
A Firebase Server Key and Firebase Sender ID are required in order to send push notifications to Android mobile app devices.
The goal of this section is to provision your Firebase Server Key and Firebase Sender ID for use in OneSignal.
Requirements
Step 1: Create A Firebase Project![]()
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.
Firebase Generate New Api Key DownloadStep 2: Getting Your Firebase Cloud Messaging Token And Sender ID
Click the gear icon in the top left and select Project settings.
Select the CLOUD MESSAGING tab.
How To Get Api Key In Firebase
Save the two values listed under Server key and Sender ID.
Step 3: Configure Your OneSignal App's Android Platform Settings
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:
Firebase Generate New Api KeysWhat's NextFirebase Generate New Api Key Registration
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |