Sandbox testing allows you to complete end-to-end testing without real payments when you integrate HUAWEI IAP for joint commissioning.
Step 1: Add a test account.
You can add a test account in AppGallery Connect. The test account must be a real HUAWEI ID. An added test account takes effect after 30 minutes to 1 hour.
1. Sign in to AppGallery Connect and click Users and permissions.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Go to Sandbox > Test account and click Add.
3. Enter your test account information and click OK.
Step 2: Configure the versionCode of the test version.
1. If the app package you want to test has not been released in AppGallery Connect, ensure that the value of versionCode of the package is greater than 0.
2. If the app package has been released in AppGallery Connect, ensure that the value of versionCode of the app package to be tested is greater than that of the released package.
For more details, check:
Sandbox testing documentation: https://developer.huawei.com/consum...SCore-Guides/sandbox-testing-0000001050035039
Related
To activate the IAP service, perform the following steps:
· Enabling Services
1. Sign in to AppGallery Connect and select My projects.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Find your project from the project list and click the app for which you need to enable a service on the project card.
3. Click the Manage APIs tab, and toggle the In-App Purchases switch.
· Setting In-App Purchases Parameters
1. The procedure is the same as that in Step 1 and Step 2 of Enabling Services.
2. Go to Earning > In-App Purchases and click Settings.
If this is the first time that you perform the configuration, a dialog box is displayed, asking you to sign an agreement.
3. Click next to Subscription Notify Url and set the notification URL.
4. Click.
Note:
Enabling the merchant service is the prerequisite for developers to distribute paid content (payable apps/themes and in-app payment). If you have not enabled the merchant service, you need to enable the merchant service and enter the bank information, tax, and contact information. For details, see Merchant Service.
Sandbox testing allows you to complete end-to-end testing without real payments when you integrate HUAWEI IAP for joint commissioning.
Step 1: Add a test account.
You can add a test account in AppGallery Connect. The test account must be a real HUAWEI ID. An added test account takes effect after 30 minutes to 1 hour.
1. Sign in to AppGallery Connect and click Users and permissions.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Go to Sandbox > Test account and click Add.
3. Enter your test account information and click OK.
Step 2: Configure the versionCode of the test version.
1. If the app package you want to test has not been released in AppGallery Connect, ensure that the value of versionCode of the package is greater than 0.
2. If the app package has been released in AppGallery Connect, ensure that the value of versionCode of the app package to be tested is greater than that of the released package.
For more details, check:
Sandbox testing documentation: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/sandbox-testing-0000001050035039
Overview
Using Huawei Account Kit, developers can easily sign-in with their Huawei Id. It provides simple, secure and quick sign-in feature. Once user is logged-in, it provides silent sign-in feature so users do not need to enter the user-id and password again and again. Users can sign-in with Huawei ID and authorization code both.
Huawei Account Kit serves 190 countries with more than 70 languages and 500 million user base.
Let us start with the project configuration part
There are 9 steps in total:
Step 1: Create an app on App Gallery Connect and enable the Auth service and Account Kit in Manage API section.
Step 2: Create Android Binding Libraries for Xamarin.
Step 3: Integrate Libraries for your Xamarin project.
Step 4: Change your app package name same as AppGallery app’s package name.
a) Right click on your app in Solution Explorer and select properties.
b) Select Android Manifest on lest side menu.
c) Change your PACKAGE NAME as shown in below image.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More details, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0203447942224500103
During Open Testing, a test user accepted my invitation and was redirected to AppGallery, but they were unable to see the test version. The No longer available message was displayed. Why did this happen and what should I do?
Here’s what the page looks like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There are three possible causes for this:
1. The test user has not signed in to AppGallery.
Solution: The user needs to sign in to AppGallery using the account you have invited.
2. The test user has signed in to AppGallery, but the signed-in account is not the account you have invited.
Solution: The user needs to switch to the invited account.
3. The registration site of the test account does not match the data storage location where the test user list was created. For example, the data storage location is the Germany site, but the test account belongs to a test list in Mexico. Even if the test user receives an invitation email, the app will not be available.
Solution: Create a new test user list and release another open testing version to the new list.
The preceding questions are included in the FAQs and video classes.
FAQs:
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-betatest-faq
Open Testing troubleshooting video:
https://developer.huawei.com/consum...pGallery-connect-Guides/agc-betatest-faqvideo
Today lets take a look at a few issues you might encounter when integrating the Huawei AppGallery Connect APM SDK into your iOS app.
Issue 1: How can I enable APM debug logs for an iOS app?Add apms_debug_log_enabled to the Info.plist file of your app and set Type and Value to Boolean and YES, respectively.
Then, you can filter the debug logs (marked as [APM]), as shown in the following figure.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Issue 2: Why is APM data not displayed in AppGallery Connect?The APM SDK has been integrated, but I cannot find the APM data in AppGallery Connect.
Official documentation states that the APM SDK requires certain dependencies, especially those of the Analytics SDK version which needs to be version 5.0.4.300 or later.
You are advised to specify the version of the Analytics SDK.
For example, if the latest version of the Analytics SDK is 5.1.0.300, you can add pod 'HiAnalytics', '~> 5.1.0.300' to the Podfile.
Issue 3: How do I find out if the APM logs are successfully uploaded?When filtering the logs, I can only find the collected and sent logs without those related to sending results.
You can query the hianalytics logs to check whether the following logs exist, especially the result code 200.
Thanks for sharing