Troubleshooting AppGallery Connect APM for iOS - Huawei Developers

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

Related

Kooky&Crash Service: App Crash Rate Reduced to 0.07%

AppGallery Connect's crash service monitors version quality in real time and detects live app crashes. When it identifies a major issue with an app, it immediately sends email and message notifications to the developers.
Kooky is a picture and video editor. It currently has over 10 million users from all around the world. Kooky's developer integrated AppGallery Connect's crash service so that it can be notified as soon as crashes occur. The crash service precisely shows where crashes occur in the code, and provides logs and device information to help the developer quickly solve issues and considerably reduce their crash rate. According to the developer of Kooky, the app's crash rate has been reduced to 0.07%.
These success stories demonstrate how AppGallery Connect can help your apps achieve success. AppGallery Connect provides services which cover the entire app lifecycle, from innovation, to development, distribution, operations, and analysis. With these services, you can improve the efficiency of your app development, gain more users, and generate more revenue. To find out more, take a look at the AppGallery Connect console.
{
"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"
}

Two-Step Access to Huawei Sandbox Testing

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

Two-Step Access to Sandbox Testing

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

Xamarin(Android) Application with Account Kit

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

How to Fix Error TLS_ECDHE_ECDSA_WITH_AES_256_6CM_SHA384 when intergrating the CloudDB Server SDK?

While integrating Cloud DB provided by AppGallery Connect, you have a number of options on where and how you can integrate the SDK, iOS and Android is supported but so is a separate Server SDK. This allows you to make use of CloudDB in your own (Java) Server applications.
One error that you might get is an error relating to TLS_ECDHE_ECDSA_WITH_AES_256_6CM_SHA384
{
"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"
}
The log might look like
Example java cloudDB error log
Example java cloudDB error log. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
The Netty framework imported in the SDK uses a specific cipher suite that is dependent on the support of JDK. If the current development environment for JDK does not support the cipher suite, an error will occur.
To resolve this problem, JCE should be installed in the local environment.
Download JCE corresponding to JDK version 1.8.
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Extract the local_policy and US_export_policy JAR packages from the downloaded package.
Then, copy the package files to your local Java directory. The path is %JAVA_HOME%/jre/lib/security.
If files with the same name already exist in the path, just overwrite them. The following figure shows my own directory.
Once done, restart the project or server, and the error hopefully won’t re-occur.

Categories

Resources