Configuring Firebase Cloud Messaging for EachScape apps

Before you setup Cloud Messaging in Firebase you’ll need to install and configure Firebase iOS and Android apps with the EachScape Analytics plugin using the steps in the article below:

CONFIGURING FIREBASE ANALYTICS FOR EACHSCAPE APPS
https://eachscapedeveloper.com/configuring-firebase-analytics-for-eachscape-apps/

NOTE: You will need to setup an Apple Push Certificate in your EachScape app before you setup the Firebase Push Messaging for iOS. Android does not need this for Cloud Messaging.

Here’s an EachScape help file on this:
Creating a Push Certificate for iOS apps
http://support.eachscape.com/customer/en/portal/articles/1504379-creating-a-push-certificate-for-ios-apps?t=573608

 

Once you’ve completed the steps in the articles above then you’ll need to setup a Cloud Messaging plugin in your app in EachScape Studio.

On the left hand side of EachScape Studio click on Plugins/New Plugin

 

Choose the Cloud Messaging plugin and click on “Install”

You should now see 3 plugins installed in your EachScape app.

Next, in EachScape Studio go to “Configure”

In the “Plugins” tab scroll down to “Push notification provider” and choose “EachScape”. Then scroll down and save with the blue “Update” button.

 

Android is now ready to send Firebase Cloud messages. iOS requires setting up a Key in your Apple Developer Account and uploading it to your Firebase project.

Here is how to setup a Key in your Apple Developer Account.

Log into your Apple Developer Account and click on “Certificates, IDs & Profiles”

Click on “Keys”

Create a new “Key”. One Key can be used for multiple Firebase projects. There is a limit to the amount of Keys you can create so is best to use just one Key for all Firebase projects.

Once you create the Key you can only download once after you create it so save the Key in a safe place.

To create a new Key click on the “+”.

Give your Key an intuitive name and select “Apple Push Notifications service (APNs)” then click “Continue”.

On the next screen click “Register”

Now click on “Download” to get your key. You can only download here once and will be unable to download again. Keep your key in a safe place! You will also need to copy  your “Key ID”. You’ll need this to setup the Key in Firebase.

Click “Done”.  Now in you Apple Developer Account navigate to and click on “Membership” on the first Developer Account screen Account. From here copy your “Team ID”

 

You now have your Apple Developer “Key”, “Team ID” and “Key ID”. Now we can take these and setup iOS push in your Firebase project

NOTE: You will need to setup an Apple Push Certificate in your EachScape app before you finish the Firebase Push Messaging.

Here’s an EachScape help file on this:
Creating a Push Certificate for iOS apps
http://support.eachscape.com/customer/en/portal/articles/1504379-creating-a-push-certificate-for-ios-apps?t=573608

Once your iOS provisioning and Firebase plugins are in place in your EachScape app you can now setup iOS push in Firebase.

First go to “Project Overview/Project Settings”

Then click on the “Cloud Messaging” tab.

Now scroll down to “APNs Authentication Key” and click upload to upload your “Key” you just created in your Apple Developer account.

Have your “Team ID” and “Key ID” from your Apple Developer account also. Once you have all in place click “Upload” and then you’re done with iOS setup.

The last thing you need to do is go to Google Cloud and add api restrictions to the Keys that Firebase has automatically created in your Google Cloud account.
Here is a help file on how to restrict your Keys .

Adding restrictions to API keys
https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions

If you follow all the above steps you are now ready to send messages to your iOS and Android EachScape apps.

In your Firebase project navigate to and click “Cloud Messaging” on the left.

 

Click on “Send your first message” OR “New Notification” if you have already sent your first messages.

Enter “Notification Title” and “Notification Text” you want to send out. Then scroll down and click “Next” (Note: Notification Image is not available now for EachScape apps)

Now choose what platform/app you want to target for your Cloud Message. iOS or Android.

Then click “Next” to schedule your push message. You can choose to push out right away or schedule in the future.

Click “Next”. You can configure steps 4 and 5 for more advanced options or just click through “Next” on those steps to send or save your message.

Click “Review” to review and then “Publish” to send out your Cloud Message to either iOS or Android Apps.

Do the same process for your Android Apps.

Sometimes the first message doesn’t go through. The follow messages will work if configuration is correct.

Good luck! 🙂

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *