This chapter contains the steps you need to set up your Android Rhodes client and RhoConnect server for push messaging. After you perform the steps in this chapter, you will finish by performing the client setup that is needed for all platforms.
To set up your Android Rhodes client application and RhoConnect server application for RhoConnect Push, you need to set up Firebase Cloud Messaging (FCM).
To do so, perform the Provide Firebase credentials manually section. Place credentials JSON file into the settings directory. Provide the path to it in env variable GOOGLE_APPLICATION_CREDENTIALS.
You may read common FCM docs at the Google developer site.
To set up your RhoConnect application for Firebase Cloud Messaging (FCM), you must have first set up Firebase Google Cloud Messaging.
Update settings/settings.yml
to include your FCM Project ID and app client package name:
:development: :redis: localhost:6379 :syncserver: http://localhost:9292/application/ :licensefile: settings/license.key :fcm_project_id: your_fcm_project_id_here :package_name: com.your.clientApp
You can use the following env variables for debugging output:
FIREBASE_DEBUG=true GOOGLE_API_USE_RAILS_LOGGER=false
Enable push in your Rhodes client application in build.yml.
capabilities: - push extensions: - fcm-push
Once you have completed the above steps for setting up push on Android client and RhoConnect server, you must still perform the client setup that is needed for all platforms.