Setup project in the HMS console and integrate it with your app.

HMS integration instruction

Add Huawei push kit dependency to your app’s gradle file.

implementation 'com.huawei.hms:push:'

Enable HCM handling for SDK.

public class MyApp extends Application {

    public void onCreate() {
        ProxiCloudSdk.create(getApplicationContext(), "API_KEY"); //init SDK as usual

For SDK to access notification data you need to extend HmsMessageService. We provide default implementation, but it has to be registered in the application’s manifest. Do it only if you don’t already extend this class as only one service will receive messages.

        <action android:name="com.huawei.push.action.MESSAGING_EVENT" />

If you already have your own implementation, pass received message to the SDK. It will recognize which messages should be handled.

public class MyHmsMessageService extends HmsMessageService {

    public void onMessageReceived(RemoteMessage remoteMessage) {