Google recently moved most of its services(like analytics, cloud messaging etc.) to firebase platform, they say firebase has more functionality and performance. so going forward they will support only firebase applications.
So we at Androapp are also migrating to firebase for push notifications.
If you had setup google cloud messaging earlier for your app, than you have to migrate your existing project to firebase, click here for the instruction on how to migrate.
Continue here for setting up a fresh firebase project for push notifications.
- Go to https://console.firebase.google.com
- Click on Create New Project button
- Fill up the name and select the region, click on Create Project button
- Click on Add Firebase to your android app
- Give the package name, you can get this value in your first email from androapp
- Leave the signing certificate SHA-1 field empty and click on Add App
- At this moment, your browser must have downloaded a file with name google-services.json
- open that file, it will look like this
- Copy the mobilesdk_app_id value from the file to Google App id textbox in Account Settings Tab. it will look like this: 1:370901340170:android:ce70542cdae49cac
- Click on Continue and Finish in next screens.
- go to the mobile app you just created and click on the 3 dot menu and select Manage option
- Go to cloud messaging tab and copy the Server key(not the legacy server key) to Google Api Key textbox in AndroApp Account Settings tab.(this is different from what you see in google-services.json, you have to enter the server key from this screen to google api key textbox in AndroApp Settings page and not from google-services.json file)
- You are done !!