HMS Toolkit Streamlines Your Environment Configuration with Configuration Wizard - Huawei Developers

HMS Toolkit is an IDE plugin which provides all the tools you need to develop and release HMS Core-integrated apps in Android Studio. You can use it to create, code, convert, debug, test, and release your apps, and it cuts the cost of development and boosts efficiency by more than three times.
{
"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"
}
l Functions
Configuration Wizard enables you to quickly prepare your environment for the integration of HMS Core kits. The configuration process originally comprised 14 steps, during which you had to frequently switch between the IDE and AppGallery Connect. But with this tool, you can automatically configure a full environment, including your team, project module, AppGallery Connect file, and project certificate. It saves a lot of preparation time and improves your efficiency when developing.
l Highlights
Automatic configuration with one click
Streamlines the configuration process.
No need to keep checking documents or switching tools.
Various configuration scenarios
Supports configuring multiple kits at the same time.
Supports all kits for which development preparations are required.
Efficiency boost
Shortens the configuration process from 4 hours to 5 minutes.
Provides you with clear guidance.
l Usage
If you have any questions, please submit a ticket. Huawei technical support will reply to you as soon as possible.
For more information about HMS Toolkit, go to >>
For how to quickly integrate each kit using HMS Toolkit, go to >>
For more operation tutorials, go to >>
For more details, you can go to:
l Our official website
l Our Development Documentation page, to find the documents you need
l Reddit to join our developer discussion
l GitHub to download demos and sample codes
l Stack Overflow to solve any integration problems
Original Source

Related

HMS Game service can be used with Unity ?

Huawei GameService supports unity .
You can follow list to integrate game service to Unity .
We use UDP(Unity Distribution Portal) that allows you to distribute your games to multiple app stores through a single hub.
{
"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"
}
Note : Before you begin operation You must learn UDP and How it works.for this reason you can visit this pageshttps://docs.unity3d.com/Packages/[email protected]/manual/Before_you_begin_know_this.html)
(https://docs.unity3d.com/Packages/c...al/Configuring_Unity_Distribution_Portal.html)
Integrate UDP SDK : To use UDP in-app purchases, implement the integration on the client and the server sides. If your game is offline, you only need to implement the client-side integration. If your game is online, you can opt to also implement the server-side integration...
(for details : https://docs.unity3d.com/Packages/c...manual/Implementing_UDP_in-app_purchases.html )
Download & integrate UDP specified Huawei AppGallery Game Services : Game Service helps you build basic game functions such as achievements, leaderboards, and saved games at low costs.
(Details : https://assetstore.unity.com/packages/add-ons/services/huawei-appgallery-game-services-164354 )
to learn information about Huawei GameService visit this Link
Build game with UDP SDK and Huawei AppGallery Game Services in Unity Editor : Building your game and deploying it to the UDP console.
(Details: https://docs.unity3d.com/Packages/c...game_and_deploying_it_to_the_UDP_console.html)
Upload game to UDP Console and prepare Game : The UDP console is a web-based platform where you can manage your games before submitting them to stores.
(Detail: https://docs.unity3d.com/Packages/c..._publishing_your_game_on_the_UDP_console.html)
Register game to Huawei AppGallery : Now we must register on Huawei AppGallery follow this Page
(Detail : https://distribute.dashboard.unity.com/guideDoc/HUAWEI )
Submit game to Huawei AppGallery :After all steps were done successfully you can submit game using UDP Console.
UDP Console -> [Game Detail] -> Publish page.
Configure Huawei specific steps in Huawei AppGallery : You visit this page and read mandatory section (Detail:https://distribute.dashboard.unity.com/guideDoc/HUAWEI)
More information about this, please visit HUAWEI Developers.
Any questions about this process, you can try to acquire answers from HUAWEI Developer Forum.​

Cloud Testing: - Variety of tests on your Android App

More articles like this and questions for the process, you can visit HUAWEI Developer Forum and Medium.
{
"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"
}
Introduction
Cloud-based testing services can be a most power full feature for app developers. But when it comes to choosing a testing service, you would be remiss if you only conducted automated tests or in-house tests. Automatic test processes based on real mobile phone use.
1. Compatibility Test
2. Stability Test
3. Performance Test
4. Power consumption Test
Let’s start how to do Cloud testing
· We need to create a project in android studio.
· Create an application in the Huawei AGC.
· Provide the SHA-256 Key in App Information Section.
· Provide storage location.
· Download the agconnect-services.json from AGC. Paste into app directory.
· Add required dependencies into root and app directory
· Sync your project
· Start implement any sample application.
Let’s start Compatibility Test
· The compatibility test of cloud test allows you to perform real machine tests.
· This test performs different scenarios of testing like installation, ANR, crash, UI error etc.
· Create Compatibility Test Task.
· Sign in to AGC and select your project.
· Select Project settings -> Quality -> Cloud Testing
· Select Compatibility Test and click start Now.
· Create Test Task, Upload APK into cloud testing
· After uploading success click Next button.
· Select device model and click OK Button.
· If you want create another test click Create Another test, if you want to view test lists then click View Test List it will redirect to test result page.
· Select Compatibility test from the dropdown list.
· Click View operation to check the test result.
· You can check full report click eye icon in bottom of the result page.
Test Report Result:
Note: Similar way you can test remaining Test methods
Conclusion:
Automating your testing process can reduce up to 99% of defects in your application, before releasing to manual testing. Huawei provides a detailed report for your to improve your app
Reference:
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudtest-introduction
quite detailed. I will try.

Steps for Integrating the Wi-Fi Sharing Function in Nearby Service

Overview
We've grown accustomed to the hassle of connecting our devices to the Wi-Fi networks in new locations, which can be an annoyance at best, and a major frustration at worst. But perhaps more importantly, this process also comes with the risk of password leakage. Wouldn't it be nice if there was a way to connect our devices to Wi-Fi networks on an automatic basis, rather than having to manually enter the password each time?
HUAWEI Nearby Service offers a Wi-Fi sharing feature, which once integrated, equips your app to connect users on a wide range of smart devices to the Wi-Fi networks that they encounter.
Wi-FiShareDemo
Here, we've used Wi-FiShareDemo as an example, which has integrated the Wi-Fi sharing function in Nearby Service. Now, we'll show you the core code for the app, and how the app can be run.
Preparing Tools
One Huawei phone (The phone for sharing Wi-Fi must be a Huawei phone, and be connected to Wi-Fi.)
One Android device (The device to be connected to Wi-Fi must run Android 5.0 or later and have HMS Core installed, and can be a phone or a TV box.)
Android Studio (3.X or later)
Creating an app
Import the source code to Android Studio.
Register as a Huawei developer.
Create an app in Huawei AppGallery. For details, please refer to HUAWEI Developers-App Development. Note that you will need to download the agconnect-services.json file, generate the signing certificate, and save both to the app directory.
{
"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"
}
Run the app in Android Studio and install it on the test devices.
Procedures
After configuring the code and completing the installation, perform the following steps.
1.Start Wi-FiShareDemo on B, and tap Connect Wi-Fi.
2.Start Wi-FiShareDemo on A, and tap Share Wi-Fi.
3.On A, select the phone that will share Wi-Fi, make sure that the verification codes on both phones are the same, and tap ALLOW.
4.On B, tap ALLOW in the dialog box that is displayed to authorize the Wi-Fi connection.
Core Code
You can view the source code of the app in GitHub. In this app, the WifiShareHelper.java class is encapsulated based on the Nearby Service APIs. Only the APIs requestWiFiConfig and shareWiFiConfig for WifiShareHelper.java are used to connect to and share Wi-Fi.
requestWiFiConfig
// The device request to connect WiFipublic void requestWiFiConfig() { Log.d(TAG, "requestWiFiConfig"); mWifiShareEngine.startWifiShare(mWifiShareCallback, WifiSharePolicy.POLICY_SET) .addOnFailureListener(e -> Log.e(TAG, Objects.requireNonNull(e.getMessage())));}
shareWiFiConfig
// The device to share wifipublic void shareWiFiConfig() { Log.d(TAG, "Start to share WiFi"); mWifiShareEngine.startWifiShare(mWifiShareCallback, WifiSharePolicy.POLICY_SHARE) .addOnFailureListener(e -> Log.e(TAG, Objects.requireNonNull(e.getMessage()))); showListView(); setListViewListenerMode();}
Learn More
For more details, please visit HUAWEI Developers.
For further instructions, please refer to Development Guides.
To join the developer discussion, please visit Reddit.
To download the demo and sample code, please go to GitHub.
To resolve integration issues, please go to Stack Overflow.

Integration of Huawei Reward Ads and Interstitial Ads in Unity

Overview
In this article, I will create a demo game and integrate Huawei Ads Kit. So the developer can easily monetise their efforts using Reward Ads and Interstitial Ads. I will cover every aspect of the game development with Huawei Ads Kit.
Service Introduction
Ads kit is powered by Huawei which allows the developer to monetization services such as Reward Ads and Interstitial ads. HUAWEI Ads Publisher Service is a monetization service that leverages Huawei's extensive data capabilities to display targeted, high-quality ad content in your game to the vast user base of Huawei devices.
Prerequisite
1. Unity Engine (Installed in the system)
2. Huawei phone
3. Visual Studio 2019
4. Android SDK & NDK (Build and Run)
Integration process
1. Sign In and Create or Choose a project on AppGallery Connect portal.
{
"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. Navigate to Project settings and download the configuration file.
Game Development
1. Create a new game in Unity.
2. Click 3D, enter Project Name, and then click to CREATE.
3. Now add game components and let us start game development.
4. Download HMS Unity Plugin from below site.
https://github.com/EvilMindDevs/hms-unity-plugin/releases
5. Open Unity Engine and import the downloaded HMS Plugin.
Choose Assets > Import Package> Custom Package
6. Choose Huawei > App Gallery.
7. Provide the AppId and other details from agconnect-service.json file and click configure Manifest.
8. Create Huawei Ads based scripts.
I have created AdsDemoManager.cs file in which integrated Huawei Ads which display Reward Ad and Interstitial Ad functionality.
Click on AdsDemoManager.cs and open in Visual Studio 2019
For codes and detailed information, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0203424621102710033
It can be Useful.
Rebis said:
It can be Useful.
Click to expand...
Click to collapse
It will quite great
How can we configure rewards on server ?

What Can I Do When My App Is Rejected Due to the Update Pop-up Failing to Display on a Mobile Phone with HMS Core (APK) 2.5.3 or Earlier?

Symptom
My project has integrated HUAWEI IAP and other services using the HMS Core SDK 4.x. However, the app is rejected during Huawei app review, for an update pop-up cannot be displayed on a mobile phone with HMS Core (APK) 2.5.3 or earlier.
Problem Reoccurrence
On a Huawei mobile phone, I went to Settings > Apps > Apps, then searched for and tapped HMS Core (APK). On the displayed page, I tapped the button in the upper right corner, and chose to uninstall the APK update. The operation failed. When I contacted Huawei technical support,
I was told that the problem was because the HMS Core (APK) version on my phone is earlier than 2.5.3. Each of the following solutions can be used to reoccur the problem.
Find a Huawei phone and perform the preceding steps.
If the uninstallation fails, find a non-Huawei phone and uninstall HMS Core (APK).
If the Huawei phone has been rooted, just uninstall HMS Core (APK).
Problem Analysis and Solution
1. Log analysis: Here, I used a non-Huawei phone and uninstalled HMS Core (APK). As expected, the update pop-up did not show up when I initiated a payment in my app. The following error information was displayed in the logs.
{
"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. Result code analysis: I searched for the result code in Huawei’s materials, and found more than one result. The result that we need is that which is described in In-App Purchases.
3. Code check: In the documentation, I checked the project code and determined the fault. The input parameter in our project is of the Context type, rather than the Activity type, which is why the error information indicated that no activity was found.
I then modified the code to resolve the problem.

Categories

Resources