Google does not provide access for Huawei devices to its current Android version and its services. This prohibits sending push messages from Google Firebase to the latest Huawei mobile devices. To solve this problem, Emarsys developed a new version of the Emarsys SDK making use of the Huawei Push Kit, enabling push messaging to Huawei devices. This integration supports most of the Mobile Engage features.
Currently, Mobile Engage - Geofencing is not supported for Huawei devices.
Prerequisites
- Emarsys SDK 3.0.0 or higher integrated into your Android application
- Huawei Push Kit integrated alongside Google Firebase
Setting up Huawei support
- Configure your App Information in AppGallery Connect based on the Huawei documentation.
- In App Gallery Connect, go to My Apps and find the app to support from Emarsys.
- Enable Push Kit as described in the Huawei documentation.
- In App Gallery Connect, under My Apps, after selecting the app to support from Emarsys, you can see the the App information. From this screen, please note down the following:
- App ID
- App secret
These will be needed during the Huawei app setup in Emarsys.
- Go to Channels > Mobile Engage > Apps and click on Add Android Huawei.
- Here, you have to set the Huawei App ID of your app and its App secret and configure the Notification Channels the exact same way you configure channels for an Android app.
If all the above is done, you can create your first push campaign which will also be sent to Huawei devices. You have to follow the usual push campaign creation steps. The only extra step you need is to configure the Android Huawei platform specific options under Platform Settings: