Skip to content

Safety Detect user detection fails with error code 6003 in @hmscore/react-native-hms-safetydetect (v6.7.0-300) #367

Open
@volkandincer

Description

@volkandincer

Hello Huawei Support Team,

I'm trying to integrate the @hmscore/react-native-hms-safetydetect module into my React Native project, and I’m encountering a persistent error when calling the user detection functionality.

I consistently receive the following error:

Error code: 6003
According to the documentation, this error code typically indicates an internal or misconfiguration issue, but I have confirmed that HMS Core is installed and up-to-date on the device.

Additionally, during the build process, I get a Gradle warning that might be related:

Reason: Task ':react-native-hms-safetydetect:copyDebugJniLibsProjectOnly' uses this output of task ':hmscore_react-native-hms-safetydetect:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
This may be causing the SafetyDetect module to initialize improperly or inconsistently.

What I've Tried:
Verified HMS Core installation and permissions on the device

Updated all Huawei dependencies to the latest versions

Upgraded Gradle and Android Gradle Plugin

Tried building on both Huawei and non-Huawei devices

Attempted manual task dependency handling via whenTaskAdded (temporary workaround)

Environment:
React Native Version: 0.74.3

@hmscore/react-native-hms-safetydetect Version: 6.7.0-300

HMS Core: Installed and up-to-date

Request:
Could you please help identify the root cause of error code 6003 in this context? If it’s related to the build process or task misconfiguration, guidance or a fix would be greatly appreciated.

Thank you for your support.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions