App Gallery Configuration
Appmate server needs some information to communicate with Huawei. The process for configuring these credentials is explained below step-by-step.
#
Auth ServiceAuth Service, you need to activate the service titled Auth Service under the Manage APIs tab on the Project Settings page of AppGallery Connect.

You need to activate Auth Service on My Projects page, Build tab on the left menu and Auth Service page.

#
In-App PurchasesIn-App Purchases, you need to activate the service titled In-App Purchases under the Manage APIs tab on the Project Settings page of AppGallery Connect.

Activate the Use SHA256WithRSA/PSS signature algorithm and Key event notifications for an order or subscription on the In-App Purchases page on the left menu of the My Projects page. (Notification recipient address: https://appmate.tech/api/iap/notification/huawei)

#
You will need to complete the following credentials.
Configuration | Description |
---|---|
Package Name | Package Name can be found by navigating to your app page in My Apps section of AppGallery Connect in App Information page, under Distribute tab. It should look something like com.example.app123 |
App ID | App ID can be found by navigating to your app page in My Apps section of AppGallery Connect in App Information page, under Distribute tab. It should look something like 123456789 |
Client ID | Client ID can be located by navigating to your app page in Users and Permissions section of AppGallery Connect. Under Connect API menu item, in API Client list, it can be located and copied. |
Client Secret | Client Secret can be located by navigating to your app page in Users and Permissions section of AppGallery Connect. Under Connect API menu item, in API Client list, it can be located and copied. If there are no keys, a new key can be created by tapping Create button. |
App Secret | Select your app from App Secret, My Projects page. On the General information tab on the Project Settings page, under the OAuth 2.0 Client ID heading in the Application Information section, it is the key titled Client Secret. It should look something like "47fb563cc8f86dc37c86d08bc542968f7986acd81c97bf76db7ad744407fe117" |
Public Key | Public Key can be found by going to your app page in the My Projects section of AppGallery Connect. Under the In-App Purchases menu item, your Public Key can be found and copied on the Configuration tab. |
#
1. Package NamePackage Name can be found by navigating to your app page in My Apps section of AppGallery Connect in App Information page, under Distribute tab. It should look something like com.example.app123

#
2. App IDApp ID can be found by navigating to your app page in My Apps section of AppGallery Connect in App Information page, under Distribute tab. It should look something like 123456789

#
3. Client IDClient ID can be located by navigating to your app page in Users and Permissions section of AppGallery Connect. Under Connect API menu item, in API Client list, it can be located and copied.

If there are no ids and keys, a new id key pair can be created by tapping Create button. Set a name for the key and select the project. Select Adminisrator role for the key and click OK.

#
4. Client SecretClient Secret can be located by navigating to your app page in Users and Permissions section of AppGallery Connect. Under Connect API menu item, in API Client list, it can be located and copied.

#
5. App SecretSelect your app from App Secret, My Projects page. On the General information tab on the Project Settings page, under the OAuth 2.0 client ID heading in the Application Information section, it is the key titled Client Secret. It should look something like "47fb563cc8f86dc37c86d08bc542968f7986acd81c97bf76db7ad744407fe117"

#
6. Public KeyPublic Key can be found by going to your app page in the My Projects section of AppGallery Connect. Under the In-App Purchases menu item, your Public Key can be found and copied on the Configuration tab.
