**Starting May 29, 2019, Android push notifications will be moved to the Firebase platform**


##### UPDATE 2024 ###########

This article is outdated,please use the link below for the updated version:

https://docs.appmachine.com/app-details/firebase/enable-cloud-messaging


#############################



Known issues:


  • During the Complete configuration step, after allowing AppMachine access to your Firebase account, your Firebase project is configured. In some cases, the message Verifying... remains on screen. If this remains on screen for more than 30 seconds, click the Complete configuration button again.

  • Users may experience issues when using the Sign in with Google button in Internet Explorer and Edge browsers. To resolve this issue, please divert to alternative browsers like Google Chrome, Safari, or Firefox.

  • For more information, please visit the Firebase FAQ.



This article provides a step-by-step guide on how and where to:


  • Create a Firebase account.
  • Create a Firebase project.
  • Find your Firebase Project ID.
  • Find your Firebase Server key.
  • Complete the configuration of your Firebase project via AppMachine.


After completing the steps below, you will have successfully set your app up to be published with Firebase push notification support. 


  1. Navigate to https://firebase.google.com/.

  2. Click Get Started.



  3. Login with your Google account.

  4. On the welcome screen, click Add project.



  5. Enter a name for your project.

  6. Accept the terms of service.

  7. Click Create project.

  8. Enter a name for your Firebase project and click Continue.


  9. If you would like to track your app using Google Analytics, then make sure that the option is enabled before using the Continue button to proceed.


  10. Choose or create a Google Analytics account and click on the Create Project button to finish creating the Firebase project.


  11. Click Create project to finish the steps and open your project.

  12. From the left-side menu, click on the settings icon to open the Project settings page.


  13. On the General settings page locate and copy the Project ID. Please note that the Project ID will not always be the exact same as the Project name.



  14. Open the Cloud Messaging settings page by clicking on the tab.


  15. If the Cloud Messaging API is displayed as 'Disabled', then open the more-options menu on the left-side of the frame and click the 'Manage API in Google Cloud Console' button.


  16. A new tab will open up on which you'll be able to enable the Cloud Messaging API. Click the Enable button to do so.


  17. Switch tabs to go back into the Firebase project and refresh the page.

  18. The Cloud Messaging API should now show as 'Enabled', and the Server key should now be visible.

    >>Note: Please do not use the Web API Key that can be found on the General settings page or the Legacy server key<<

  19. Enter the Project ID and Server key on the Push Messages page of your app in AppMachine and save your changes.



  20. Click the 'Sign in with Google' button to complete the configuration of your Firebase project. During this process our system will automatically create configure your app within the specified Firebase project.

    When prompted for your Google account, please login to the Google account on which you've created your Firebase project.



  21. Grant AppMachine access to the requested permissions, and complete the process by confirming your choices.



  22. After allowing AppMachine access to Cloud Platform and Firebase services, we will automatically create a Firebase app within your Firebase project.

  23. On success, you will be notified that the apps have been added to the project.

    Note: if 'Verifying...' remains on screen for more than 30 seconds, please click the Sign in with Google button again.


 


When your app has been successfully configured, use the Update button on the Publish page in AppMachine to process these changes in your live app.