Huawei Integration
How to integrate Pushwoosh SDK into your Huawei project
Last updated
How to integrate Pushwoosh SDK into your Huawei project
Last updated
Please be aware that geo-based messaging is not available for HMS (Huawei Mobile Services) devices as it’s built upon Google location services.
A Pushwoosh Application with configured Huawei platform and its code in format XXXXX-XXXXX
A Huawei device with Huawei Mobile Services installed
1.1. Go to AppGallery Connect -> Projects List and select a project to configure.
1.2. Press agconnect-services.json in the App information section to download a configuration file.
1.3. Put the downloaded file into your Android Studio project (YOUR_PROJECT/app/agconnect-services.json).
Follow Generating a Signing Certificate Fingerprint to generate a signing certificate fingerprint.
pushwoosh-huawei
module 3.1. Add the pushwoosh-huawei
module to your app-level build.gradle
:
Replace "+" with the current version of Pushwoosh: https://github.com/Pushwoosh/pushwoosh-android-sdk/releases/latest
4.1. Add maven {url 'https://developer.huawei.com/repo/'}
to your root-level build.gradle (Project)
under buildscript { repositories }
and allprojects { repositories }
.
4.2. Add classpath 'com.huawei.agconnect:agcp:1.3.1.300'
under buildscript { dependencies }
.
Make sure all the following three lines added to your root-level build.gradle
:
4.3. Add implementation 'com.huawei.hms:push:5.3.0.304'
to your app-level build.gradle
(app/build.gradle) under the dependencies
section.
4.4. Add apply plugin: 'com.huawei.agconnect'
to the very bottom of the app-level build.gradle
file.
Make sure there are two following lines in your app-level build.gradle
:
Sync Gradle
Make sure to press Sync Now on the banner that pops up after saving.
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us via this form.