目录

Integration of Open Capabilities

  1. Integrating HUAWEI ID capabilities

    • If your atomic service has its own account system, it shall call the HUAWEI ID sign-in API in a standard manner to perform silent sign-in with a HUAWEI ID, thereby minimizing user disruption. For details, see Sign-In. The atomic service UI shall not contain words such as "Sign in". Atomic service accounts can be linked with HUAWEI IDs using mobile numbers. For details, see Best Design Practices - Account.
    • You shall use the HUAWEI ID–based mobile number authorization capability in a standard manner when requesting mobile number authorization from users, and must process users' mobile number information lawfully and reasonably with the explicit consent of the users. Unless otherwise required by laws, it is not allowed to request mobile number authorization from a user before the user starts using the atomic service to block the user from browsing or using the atomic service; and mobile number authorization shall not be requested in scenarios where the mobile number is unnecessary. For details, see Best Design Practices - Account. For details about the implementation of the atomic service under ASCF, see Obtaining User Information Associated with a HUAWEI ID.
  2. Integrating message subscription capabilities

    • You can use the account-based messaging capability provided by Huawei to select a subscription template and send service notifications to users after obtaining their consent. For details, see Pushing Information to Users.
    • You can use the account-based service update message capability provided by Huawei to connect your atomic service to the service update platform and send service update messages to users. For details, see Pushing Account-based Service Updates Messages.
  3. Integrating the map and location capabilities

    • Using the map component

      You can invoke HUAWEI Map Kit capabilities, which are required for map display, place details viewing, and map app navigation. They are also recommended for place search and route planning. For details, see Map.

    • Integrating the location capability

      If you need to implement the capability of obtaining location information, such as map-based location selection and positioning, during atomic service development, you need to integrate the system location capability.

      The following table lists the APIs for acquiring location information. Ensure that authorization has been obtained before calling these APIs. For details, see Obtaining Location Information.

      API Description
      has.openLocation Views a specific location on the map.
      has.getLocation Obtains the current geographic location.
      has.getFuzzyLocation Obtains the current fuzzy location.
      has.chooseLocation Selects a location on the map.
  4. Integrating payment services

    You need to call Huawei Pay capabilities for payments. For physical products, use Payment Kit. For details, see Integrating Payment Services. For digital products, use IAP Kit. For details, see IAP Kit.

  5. Using the web component

    You need to use the web-view component to call web capabilities. For details, see Developing the web-view Component.

  6. Implementing navigation

    For details about how to redirect to another atomic service, see Implementing Navigation.

    App redirection: Currently, only some system apps are supported. The system blocks other apps and displays a message indicating redirection failure. If necessary, use the button component and set open-type to launchApp for app redirection.