Enable Huawei Push Kit

Last Updated on : 2024-06-24 04:19:30download

This topic describes how to enable the Huawei Push Kit service for an app, enable map and push notifications for app packages targeted at users outside mainland China, and get the configurations of Huawei Push Kit. This topic applies when you build Tuya-powered OEM apps.

Preparation

Procedure

  1. Go to AppGallery Connect.

    Enable Huawei Push Kit

  2. Click My apps.

    Enable Huawei Push Kit

  3. Click New app.

    Enable Huawei Push Kit

  4. Enter the required information.

    • Package type: Select APK(Android app).

    • Devices: Select Mobile phone.

    • App name: Enter your app name.

    • App category: Select App.

    • Default language: Select a language as the default language of the app as needed, for example, English (US).

    • Add to project: Select this checkbox to configure Huawei Push Kit and add the app to the project.

      Enable Huawei Push Kit
  5. After the app is created, click My apps in the top menu bar to switch to My projects.

    Enable Huawei Push Kit
  6. Select Manually enter a package name, enter the package name for Android mentioned in the Preparation steps, and then click Save.

    Enable Huawei Push Kit
  7. In the left-side navigation pane of AppGallery Connect, click Push Kit and click Enable now.

    Enable Huawei Push Kit

  8. In the Data processing location section, China is recommended. Then, click OK.

    If you use the HUAWEI international package to launch in outside mainland China, it is recommended that you do not select the China region for the data processing location.

    Enable Huawei Push Kit

  9. Choose Project settings > General information, paste the SHA 256 certificate fingerprint copied from the Preparation steps, and then click the iconEnable Huawei Push Kit to save the settings.

    Enable Huawei Push Kit

  10. (Optional) Choose Project settings > Manage APIs and enable Site Kit, Map Kit, and Location Kit as needed.

    This step applies when you launch the app on Huawei AppGallery by using the installation package targeted at users outside mainland China. In this case, you need to additionally enable Site Kit, Map Kit, and Location Kit.

    Enable Huawei Push Kit

Result

Based on the preceding steps, you can go to Project settings > General information, and get the following Huawei Push Kit configurations that you need to save for further uses.

  • API key

    Enable Huawei Push Kit

  • App ID

  • Access Secret

  • agconnect-services.json file

    Enable Huawei Push Kit