Huawei AdID service requires min target SDK version 19
Supports Android API level 4.4 or higher.
Huawei AdID service requires min target SDK version 19
D·engage Huawei SDK provides an interface which handles push notification messages that delivered by Huawei Messaging Service (HMS). It is similar to Firebase but has a bit different configuration process that contains the following steps;
Before you start, prepare your android project for HMS Push. Please follow the steps on docs that written by Huawei; https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#6
The following docs will help you to configure your android project and Huawei App Connect account for implementing Push Kit; https://developer.huawei.com/consumer/en/codelab/HMSPushKit/index.html#4
D·engage SDK tries to access device AdID which is provided by Huawei, to associate with a subscription. To do that you need to add the following dependency to your android project.
dependencies {
implementation 'com.huawei.hms:ads-identifier:{version}'
}
For more information please read the documentation: https://developer.huawei.com/consumer/en/codelab/HMSAdsOAID/index.html#3
4.1 Visit your project settings page on Huawei App Gallery Connect and navigate to App Information Section. Copy your AppID and AppSecret.
![Creating Dengage Push Application Step 1](https://s3.amazonaws.com/user-content.stoplight.io/11229/1633092426568)
4.2 Login your D·engage Admin Panel. Navigate to “Settings > Push Applications” page and click the “Add > Android (Huawei)” button. Paste your AppID and AppSecret into associated box.
![Creating Dengage Push Application Step 2](https://s3.amazonaws.com/user-content.stoplight.io/11229/1591352564409)
4.3 Save your application and keep your integration key for the next steps.
If you prefer to handle messages (delivered from D·engage) by the SDK , you will need to apply these steps;
5.1 Add the following dependencies to build.gradle file which is located in your project root directory and sync.
buildscript {
repositories {
...
}
dependencies {
...
}
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' } // add this line
}
}
5.2 Add the following dependencies to build.gradle file which is located in your project app directory and sync:
apply plugin: 'com.android.application'
...
dependencies {
...
implementation 'com.github.whitehorse-technology:dengage.android.sdk:VERSION' // Add this line and set your prefered version.
...
}
...
5.3 Paste the following configuration values into your AndroidManifest.xml file. Thus all incoming push messages that received from D·engage Platform will be generated by the SDK.