Skill Level: Any
Not what you’re looking for? Check out all our available tutorials for mobile app messaging here.
Using a custom messaging service
Are you interested in using multiple FCM push providers? You can use a custom messaging service. For more details see Using a custom messaging service for Android.
The SDKâ€™s GCM broadcast receiver
You can give the SDKâ€™s GCM broadcast receiver the highest priority and add a GCM broadcast receiver for non-MCE notifications that will receive the non-MCE notifications.
When a GCM message arrives, the SDK GCM broadcast receiver checks whether it has originated from the MCE server. If it was, it handles it and blocks broadcasting it to other receivers. If it did not originate from the MCE server, it does nothing and leaves it to other receivers.
Note: If necessary, it is also possible to use multiple GCM sender IDs. When you register multiple sender IDs, separate them by commas (,).
The following example shows the Manifest file section:
Need more help? Check out all of our available tutorials for mobile app messaging here.