Create a Firebase Project
The first step is to create a project in the Google environment.
Note: You need to have been logged in with a Google account which can use the Firebase console in order to walk through this tutorial.
You create a project with the Firebase console.
Creating a project
Follow the steps below.
Open the Firebase console.
Click "CREATE NEW PROJECT".
You can import an existing Google project to configure FCM if you have added Google features other than FCM to the project.
The "Create a project" window opens.
Enter the following information and click "CREATE PROJECT".
- Project name
PushTest. This is the project name of your app in the Firebase console.
Select your location. Hover on the "?" mark to display the description.
- Project name
The start screen of the Firebase console opens.
Click "Add Firebase to your Android app".
The "Enter app details" screen opens.
Enter the package name of the mobile app here. Specify the package name specified when you created the project in Android Studio. It is
com.example.pushtestin this tutorial.
You can omit the app nickname and the debug signing certificate SHA-1 if you use only the FCM feature. Otherwise, follow the on-screen instruction.
Click "ADD APP" after specifying the app details.
Continue the configuration by following the on-screen instruction.
- The "Copy config file" screen downloads the google-services.json file to your machine as soon as the screen opens. You will set up the google-services.json file in Android Studio.
- Ignore the instruction to modify the build.gradle file because the modification instructed on the screen will cause a build error. We will modify the build.gradle file in a later step.
Check the server key after the project is created.
First, select "Settings" from the project menu to open the "Settings" screen.
Open the "CLOUD MESSAGING" tab in the "Settings" screen.
Record the string displayed as the server key somewhere. We will enter this string in the developer portal of Kii Cloud in the next step.
That is it for the Firebase configuration. You can close the browser now.
Let us move to the next step: Configure Kii Cloud.
|<< Create an Android Application||Configure Kii Cloud >>|