@@ -18,7 +18,8 @@ the MyID SDK will **crash during initialization**.
*[2. Configure the App ID](#2-configure-the-app-id)
*[3. Pass Huawei App ID to the SDK](#3-pass-huawei-app-id-to-the-sdk)
*[4. Example setup](#4-example-setup)
*[5. Troubleshooting](#5-troubleshooting)
*[5. Enable Safety Detect in AppGallery Connect](#5-enable-safety-detect-in-appgallery-connect)
*[6. Troubleshooting](#6-troubleshooting)
---
...
...
@@ -97,7 +98,25 @@ startActivity(intent)
---
## 5. Troubleshooting
## 5. Enable Safety Detect in AppGallery Connect
To successfully publish the application in the Huawei AppGallery console, it is necessary to enable and configure the **Safety Detect** service in AppGallery Connect.
**Step-by-step configuration guide:**
1. Open **Huawei AppGallery Connect** and sign in to your Huawei Developer account.
2. Open your project: **Development and services → Select your application**.
3. Go to **Manage APIs → Security → Safety Detect**.
4. Turn the toggle on to activate the Safety Detect service for the selected application.
5. Add the **SHA-256 certificate fingerprint**: **Project settings → App information → Add SHA-256 certificate fingerprint**.
6. Download the updated `agconnect-services.json` file and replace it in the Android project directory: `app/agconnect-services.json`.
7. Configure the SDK: see the [HUAWEI-CONFIGURATION guide](#1-add-the-huawei-integrity-sdk).
8. Sync Gradle and rebuild the project.
9. Verify that Safety Detect is correctly initialized and working before submitting the application for review in AppGallery.