Are you a developer or want to become a developer in the future? If yes then you might have heard about the Google Developer Account and uploading your Apps to Play Store etc.
But do you know that you can become a Developer for Huawei AppGallery as well and not only that, you can also become a Huawei Themes/Wallpaper Designer?
All you have to do is to apply for a Huawei Developer Account, you can do this by following my instructions:
1. First step is to register a Huawei ID.
To do this Go to -> https://developer.huawei.com/consumer/en/
Click on Register (To register your Huawei ID)
{
"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"
}
Enter the required information in the Registration Form to create your new Huawei ID.
Click on the Register button once you are done.
That’s it, you have successfully created your Huawei ID
2. Login from your Huawei ID to Huawei Developer Console
If you are done creating your Huawei ID
Go to the following link: https://developer.huawei.com/consumer/en/
Click on “Console”
Enter your Huawei ID on the Login Page (Username & Password)
3. Following options will appear after you login for the first time through Huawei Developer Console:
If you are an individual, you have to click on the blue “Next” button in the Individual Tab. (I have created an individual account for myself therefore I will show you how to do it & skip the Enterprise account creation process)
4. After clicking the “Next” button, you have to provide correct personal information and as proof of your identity you will have to upload some identity verification documents (that includes driving license, passport, identity card, etc).
You have to upload 2 of the document in order to get verified (try to upload your documents that are in English, it will speed up the verification process)
5. Once you are done, accept the “Huawei Developer Privacy Policy” and “Huawei Developer Service Agreement” and after that click the “Submit” button
6. After this process your application will be forwarded for approval, normally it takes about 7 working days to get your application approved. (If you have provided correct personal information and uploaded correct identity verification documents)
7. Once your account is verified, you will receive the following email:
8. You can now login to your Huawei Developer Account and upon login you will see the following screen on Huawei Developer Console
Now you can start developing your Apps for Huawei AppGallery and designing your Themes for Huawei Themes Store.
Thanks for sharing the information
very useful
For theme development do we need any permissions ?
Related
Publish your Applications: Huawei AppGallery
{
"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"
}
Huawei AppGallery is a distribution platform for introducing your application to end users on your Huawei mobile device, providing ability to search, download and share your applications.
AppGallery focuses on below major features to ensure applications uploaded on the platform are safe to use and download.
1. Four-layer Threat Detection
2. Smart and Exclusive App Selection
3. Exclusive Gift Packs
4. Diverse App Rankings
5. Smart Search
6. Quick Manager
Create and Upload your Application
Below needs to be followed in order to proceed with application upload.
Sign Up or Sign In
Create an account by signing-up to AppGallery. One can use their mobile no. or email Id to register as a developer.
Creating and Publishing a new application
Once your developer account is created, redirect to upload your app link, under “distribute” page.
Now re-direct to next page as shown below and select “My apps”
Once “My apps” been clicked, it will re-direct to the application page where new application needs to be created.
Select “New app” tab here and add parameters as below to create a new application.
Package Type: Application can have apk or rpk (quick app).
Category: Choose category for an application or game.
Language: Choose suitable language among 78 supported languages.
Once all the parameters are filled, click on “ok”.
Now under “Distribute” page, add “App information” as below
And click on “save”
Once “save” is clicked, click on “ok”.
After confirming the operation, application will re-direct under “Draft” page. Add release information here.
1> Add country and regions information as below
2> Scroll down and add packages or upload APK file as below by clicking on “software packages”
Tip: Please turn off proxy/svn while uploading a new apk/package.
3> Add other information as required.
Payment info: Payment info is added as free or through merchant account.
· In-app purchase: If your application is using the in-app purchase sdk, please provide this information.
· Content Rating: This is required to apply appropriate age for your application.
· Privacy policy: This is required to ensure the safe feature of application.
· Copyright Information: Provided to upload any important document or image.
· Review Information: Provide a test account and password in case we need to use some of your app functions that require user authentication, such as sign-in, in-app content viewing, and in-app purchases. The account will be used by our reviewer to verify these functions.
· Release schedule: Select a date on which app should be released in the app gallery.
Once all the release details are filled. Click on “save”.
Now, click on “Ok”.
Once application is saved, click on “Submit” and “Confirm” in the nect step.
Once application is submitted to AppGallery, same will be sent for review shown below.
Cheers!!
You can view your application in AppGallery under “MyApps” as below.
Reference: https://developer.huawei.com/consumer/en/doc/30204#h2-2-1-publishing-a-new-app
Conclusion
We can now publish our application with ease.
More information like this, you can visit HUAWEI Developer Forum
Introduction
So you have built a wonderful application but how to test it.
Or do you want to test you application on a specific device.
Let us meet your new friendly developer tool HMS Toolkit. This tool provide us the functionality of Cloud Debugging.
HMS Toolkit Installation:
If you have not yet installed HMS Core Toolkit then please go to below link to download the latest version of it before proceeding further into the article.
https://developer.huawei.com/consumer/en/doc/development/Tools-Library/toolkit-download-0000001050148172
Once downloading is done for the plugin you can directly install it via Install Plugin from disk option.
After installation it should show like below.
By the time of writing this article the latest version was 3.0.1.300.
{
"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"
}
Let’s Start with Cloud Debugging
Step by step I will guide you on how you can use this tool to test and debug your application without a real Huawei Device.
Step 1: Go to HMS and click Cloud Debugging as shown below.
Cloud debugging needs a user login in order to provide access to real devices. Hence you will be redirected to a URL where you need to confirm your identity for a successful login.
Step 2: Login and allow the service.
Once the service is allowed you will get a success message and your android studio will get access to real remote devices.
Step 3: If this screen is not opened click on cloud debugging in right sidebar.
Filters are available as highlighted below to get a specific device.
You can also check the availability of device by checking Available Devices
Once the list of device is available choose any one and proceed.
Step 4: Below should be the result after filter selection. Click Run and start the device.
A device should appear which can be accessed by sidebar. Default testing time is 2 Hours but if your testing require more time you can choose the same device once again after it gets released automatically.
Step 5: Let us run one application to see how it is performing on Cloud Debugger.
Let us see what all configurable options are given to us with this cloud debugger.
Screen Resolution:
Different resolution for a device are mentioned.
My recommendation – If your internet connection is good then go for higher resolution.
Screen Size:
You can also control screen size between 75%, 100% and 125%. To do that see the below screenshot.
Apart from this all three navigation buttons are provided to you for better control.
Conclusion
I hope you this article had given some insights in cloud Debugging.
In case you face any issue in the installation process do comment.
PS: You can also use this while presenting your screen, it doesn’t consume resources like how android emulator would do.
References
Get Application Insights and start Improving your application in minutes using HMS Toolkit Cloud Testing
HMS Toolkit - Automatic HMS SDK Integration
HMS Toolkit Convertor - Your New Best Friend for Migration
Its very interesting tool but when am trying to connect through cloud debugging am get below error
Request remote service failed: error_code 30002, 暂无可用设备,请稍后再试
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.
After an app is launched, the app update function checks whether there is a later version available on AppGallery. If so, a pop-up is displayed, asking the user whether to update the app.
After you have integrated Cocos SDKHub, the function will use the SDK to check for app updates.
If your joint operations game is rejected for not integrating the app update function, check this post.
Before you integrate the app update function, you need to integrate Cocos SDKHub. (Reference: Integrating HUAWEI Game Service Based on Cocos SDKHub — Integrating Cocos SDKHub)
After that, here’s how you integrate the function:
1.Add the following code by referring to the official document:
JavaScript:
checkUpdate:function(){
var params = {
"showUpdateDialog": "1",
"forceUpdate": "0"
}
console.log("checkAppUpdate button pressed");
sdkhub.getUserPlugin().callFuncWithParam("checkAppUpdate",params);// Call the checkAppUpdate API.
}
2. Associate the code with a specified button and select the checkUpdate method as the tap event.
3. If you see the error information informing you that the callFuncWithParam method is not found during a simulator test, just test the packaged file on a real device.
{
"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"
}
4. If the following information is displayed,
the function is integrated.
XML:
D/jswrapper: JS: checkAppUpdate pressed
I/updatesdk: UpdateSDK version is: 2.0.6.302 ,flavor: envrelease ,pkgName: com.cocos2d.xxx
D/HwConnectivityServiceEx: set 10323 wlan0 value false
I/NetworkKit_a: 27569-28056|null|com.huawei.hms.framework.network.grs.a|a|22|get url from sp is not empty.
I/DeviceUtil: UpdateSDK Get url from GRS_SDK Success!https://store1.hispace.hicloud.com/hwmarket/api/
I/StoreTask: UpdateSDK call store responsecode: 200
If the function passes the real-device test, the error displayed in the simulator test may be caused by compatibility failure.
For a mobile game that needs to be forcibly updated, pay attention to:
1. Select Force update when editing information for the new game version in AppGallery Connect.
(See step 8 in the official document)
2. Set forceUpdate in the input parameters to 1.
This way, you have successfully integrated the app update function.
very useful writeup
Neha J said:
very useful writeup
Click to expand...
Click to collapse
Thank you for your liking.
The App Linking service provided by AppGallery Connect, is a great cross platform App link generation service. The SDK supports both Android and iOS. For non-Huawei Android phones, the link can be set to redirect users to the phone’s app market, as well as support for fallback URLs.
No matter what device the user is on a Huawei AppGallery Connect App Link will work and direct that user to the best method for installing the app on their device.
But here is the question, does the links create have a validity period? If they do how long can they last?
The link of App Linking can be created in AppGallery Connect manually or via code after your app has been integrated with the SDK. Is there a difference between the validity periods of the links created using the two different methods?
Taking a look at the API reference we find that the SDK for Android and the SDK for iOS both have an API to set the validity period of the link:
For Android: The API is setExpireMinute, and is a time accurate to the minute. A link is valid for two years by default, and the minimum validity period is 5 minutes.
For iOS: The API is expireMinute, and is a time accurate to the minute. A link is valid for two years by default, and the minimum validity period is 5 minutes.
However, there is no description about the validity period of the link on the link creation page in AppGallery Connect.
And there was also an Archive button, what does this do?
{
"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 Links created in AppGallery Connect are permanently valid if unarchived. Archived links are still valid within one year.
After you click the Archive button, links will be archived but their data will not be traced.
Archived links can still be viewed within seven days. You can filter the links in AppGallery Connect by selecting Archived in last 7 days. You can also click Unarchive in the Operation column to cancel archiving.
References:
setExpireMinute
expireMinute
Archiving a Link of App Linking
Very useful, thanks!!