Use Huawei Notifications property

Official Content
This documentation is valid for:
Specifies if this application uses Notifications when generating for the Huawei platform; this will include special settings in the OneSignal setup.

Values

False
True

Scope

Objects: Menu, Panel, Work With (Only Main Objects)
Generators: Android

Description

Defines if the generated application will use the Huawei-specific Notifications platform called Push Kit.

When this property is enabled, remember to follow these steps to enable it and set the correct information.

You need to set the Notifications Provider property to OneSignal and complete steps #3 and #4 from the OneSignal Huawei SDK Setup Guide for Android Studio. For Production environments (using the Compilation Mode property in Distribution), make sure to download and use the certificate file provided by Huawei (step #4) as it details a specific SHA256 fingerprint otherwise the following error may appear at runtime:

com.huawei.hms.common.ApiException: 6003: certificate fingerprint error
at com.huawei.hms.aaid.constant.ErrorEnum.toApiException(ErrorEnum.java:1)
at com.huawei.hms.opendevice.l.a(GetTokenTask.java:26)

Then, the Huawei Services File property is enabled to add the associated configuration. Note that you need to upload the agconnect-services.json configuration file to the Knowledge Base and keep it up to date.

When using the Notifications Provider property with Jpush, set this property to false and complete the JPush configuration for the Huawei platform.

Runtime/Design time

This property applies only at design time.

How to apply changes

To apply the corresponding changes when the property value is configured, Build the Main Object.

Availability

This property is available since GeneXus 17 upgrade 2.

See Also

Main Platform property
Huawei Services File property