目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1028300001 AOD Navigation Service Initialization Failure

Message

AOD navigation service initialization failed.

Description

Failed to initialize the AOD navigation service.

Possible causes

An exception occurred during the initialization of the AOD navigation service, for example, the process failed to be started.

Solution

Try again or submit a ticket online.

1028300002 Marshalling or Unmarshalling Failure

Message

Marshalling or unmarshalling error.

Description

A marshalling or unmarshalling error occurred.

Possible causes

The AOD navigation service is abnormal.

Solution

Try again or submit a ticket online.

1028300003 Dependent Service Exception

Message

Service dependency error.

Description

An error occurred in the dependent service.

Possible causes

The service on which AOD navigation depends is abnormal.

Solution

Try again or submit a ticket online.

1028300004 AOD Navigation Service Not Requested

Message

The AOD navigation permission is not enabled.

Description

The AOD Navigation Service has not been requested.

Possible causes

The app has not requested the AOD Navigation Service.

Solution

If your app has not requested the AOD Navigation Service, follow the relevant instructions in Preparations to request it.

1028300005 AOD Navigation Disabled

Message

The AOD navigation switch is not enabled.

Description

AOD navigation is disabled.

Possible causes

The AOD navigation switch is turned off for the app.

Solution

Go to Settings > Home screen & style > Always On Display > Route display, and enable AOD navigation.

1028300006 AOD Navigation Configuration Not Set

Message

The AOD navigation configuration has not been set up.

Description

The AOD navigation configuration is not initialized.

Possible causes

The app calls other methods without initializing the configuration.

Solution

Initialize the service by calling setupAodNaviConfig and register a listener by calling onAodNaviEvent before calling other APIs.

1028300007 Number of Route Points Exceeds the Upper Limit

Message

The number of route points exceeds the limit.

Description

The number of route points exceeds the upper limit.

Possible causes

The number of route points delivered by the app exceeds the upper limit.

Solution

Reduce the number of route points and try again.

1028300008 Invalid Event ID

Message

Invalid event ID.

Description

The app does not deliver a correct event ID.

Possible causes

The app delivers a custom or invalid event ID.

Solution

Ensure that the event ID is correctly used. The event ID cannot be customized, and the ID specified by eventId in AodNaviEventInfo should be used.

1028300009 Incorrect Display Parameter Configuration for the AOD Screen

Message

Invalid AOD view data configuration. Possible causes:

  1. Data count must be within the range of 1 to 6.
  2. Data count does not match the number of configured entries.
  3. Configuration includes items unsupported by the current device.

Description

The display parameter configuration for the AOD screen is incorrect.

Possible causes

  1. The number of parameters is not within the valid range of 1 to 6.
  2. The number of parameters does not match the number of configuration items.
  3. A configuration item that is not supported by the device is configured.

Solution

Check the AOD view data configuration based on the error information. Ensure that the number of parameters ranges from 1 to 6 and matches the number of configuration items, and only the configuration items supported by the device are configured.

1028300010 UpdateAodViewData Cannot Be Called When the Hibernation Strategy Is Adopted

Message

UpdateAodViewData must not be called under the hibernate strategy.

Description

The updateAodViewData method cannot be called when the app hibernation strategy is adopted.

Possible causes

The updateAodViewData method is called when the app hibernation strategy is adopted.

Solution

If the app hibernation strategy is adopted, call the setNaviDataToAod method to transfer data, rather than calling updateAodViewData.

1028300011 Failed to Save Route Points

Message

Failed to save the route points.

Description

Failed to save the route points.

Possible causes

An exception occurred when saving the route point data.

Solution

Try again or submit a ticket online.