This document provides questions and answer for several frequently asked questions about MBS.
Firebase push notification using Appcelerator
Firebase Cloud Messaging (FCM) is the new version of GCM. Please visit https://console.firebase.google.com.
Then create your project and use that Project ID and Web API Key as a GCM sender ID and GCM API key.
Sending push via Firebase API key
You can import a cloud-enable project into Firebase. Basically similar, the end result will be a new key is generated. The steps for this are:
- Log into Firebase console: https://console.firebase.google.com/
- Choose Import Google Project from the project menu.
- Select Project Settings from the gear menu
- Select the CLOUD MESSAGING Tab and use the server key and sender ID.
- Configuring push service on the Dashboard by reviewing the information in Configuring push services.
https://gist.github.com/MotiurRahman/2cd4520727271bb60316d57032bf0028 provides an sample app.
Further reading: Generate a Google Server API Key
Is GCM going to be deprecated?
We will continue to support the current version of GCM Android and iOS SDKs because we know a lot of developers are using GCM SDKs today to handle notifications and client app upgrade takes time.
Push notification sample code
Appcelerator provided subscribed device token code with iOS 10 or later devices have some problem but part it doesn't work anymore:
Ti.Platform.name == "iPhone OS"
Visit https://gist.github.com/MotiurRahman/2cd4520727271bb60316d57032bf0028 for a working sample.
Error enabling Cloud service for project
If you receive a message similar to "Error enabling Cloud service for project" in Studio when trying to enable Cloud services for your project, the Mobile Backend Services (MBS) server may be down or Studio is unable to connect to the MBS server. Try to enable Cloud services later.
See Troubleshooting Guide for more details.