Recent Huawei devices now rely on Huawei Mobile Services (HMS) for push notifications, as an alternative to Firebase Cloud Messaging (FCM).

Batch provides you with a dedicated plug-in so that you can seamlessly include HMS with a simple dependency on your project.

If you publish the same app on Google Play and AppGallery, it will be completely transparent to you. You will be able to target users using FCM or HMS from the same dashboard, which is what we recommend in most cases.

Here are the necessary steps to complete the integration:

1. Integrate the SDK

First, you need to integrate Batch SDK into your app.

You will find all the information you need to set up the SDK here: Android documentation.

🚧 Important note: Batch HMS plug-in requires at least version 1.16 of the Batch SDK.

2. Add Batch HMS plug-in

Once the SDK is integrated, you need to add the Batch HMS plug-in to your app following this documentation.

3. Start pushing!

Once in production, you'll be able to check the repartition of push services between your users and use it as a targeting option if needed:

Did this answer your question?