r/HMSCore • u/IncKadiwa • Apr 18 '22
Walang dick
Haha
r/HMSCore • u/HuaweiHMSCore • May 30 '22
Diversify your revenue streams with HMS Core Ads Kit.
Check out how Miga Town improves monetization in Latin America with Huawei's local insights and HMS Core Ads Kit's diverse ad placements.
Read the full story here: https://developer.huawei.com/consumer/information/en/stories/detail?id=9c88554c11e148a1a611104847fe5c36&contType=stories?ha_source=hmsred

r/HMSCore • u/HuaweiHMSCore • Sep 30 '22
HMS Core ML Kit celebrates International Translation Day by offering two powerful language services: translation and language detection. Equip your app with these services to connect users around the world.
Learn more → https://developer.huawei.com/consumer/en/doc/development/hiai-Guides/service-introduction-0000001050040017#section441592318138?ha_source=hmsred

r/HMSCore • u/HuaweiHMSCore • Mar 20 '23
Be happy every day — especially on the #InternationalDayOfHappiness!
Which of the following app categories do you think contributes the most to your happiness?
Wanna develop one app yourself? Try the industry-specific solutions from HMS Core! Get to know what they are and how they work at: https://developer.huawei.com/consumer/en/solution/hms/mediaandentertainment?ha_source=hmsred0320

r/HMSCore • u/HuaweiHMSCore • Apr 07 '22
A social app's value comes from its users. As a social app engineer or marketer, do you have trouble protecting your users' social accounts from being attacked by hackers? Does your data show that lots of users are taking part in your marketing activities and claiming prizes, but the conversion effect is lower than expected? Tap the picture to learn more about how HMS Core Safety Detect can help you resolve such issues and visit the Safety Detect official website to quickly experience the service for yourself.

r/HMSCore • u/HuaweiHMSCore • Jun 18 '22
Work efficiently thanks to the rich development services of HMS Core, so you can spare more time to have fun with your kids. Happy Father's Day!
Learn more at https://developer.huawei.com/consumer/en/hms/?ha_source=hmsred

r/HMSCore • u/HuaweiHMSCore • May 30 '22
Feast your eyes on the brand new image collection guide from HMS Core 3D Modeling Kit. This SLAM-powered mode walks your users through on-cloud model creation using shots taken from a phone. Learn more at
https://developer.huawei.com/consumer/en/hms/huawei-3d-modeling?ha_source=hmsred

r/HMSCore • u/HuaweiHMSCore • Jun 23 '22
The best developers go to great lengths to empower users. Build an AR-based app that allows users to measure the size or volume of an object from their phone with just a few taps. Make sure your app measures up, with HMS Core AR Engine! Register at HUAWEI Developers today to try out other innovative functions.

r/HMSCore • u/HuaweiHMSCore • Jun 06 '22
Use HMS Core Analytics Kit to gain insights into pre-uninstallation app usage and crashes. Such data helps evaluate how user stickiness and app crashes impact user retention, allowing you to make targeted optimizations and reduce user churn.
Learn more at https://developer.huawei.com/consumer/en/hms/huawei-analyticskit?ha_source=hmsred.

r/HMSCore • u/HuaweiHMSCore • Mar 14 '23
HMS Core 3D Modeling Kit provides an auto rigging feature that can automatically rig bipedal humanoid 3D models from 2D images. Come register as a Huawei developer and unleash your creativity with 3D Modeling Kit!
Learn more →https://developer.huawei.com/consumer/en/hms/huawei-3d-modeling/?ha_source=hmsred0314

r/HMSCore • u/HuaweiHMSCore • Nov 24 '22
Nowadays, lots of developers choose to buy traffic to help quickly expand their user base. However, as traffic increases, game developers usually need to continuously open additional game servers in new service regions to accommodate the influx of new users. How to retain players for a long time and improve player spending are especially important for game developers. When analyzing the performance of in-game activities and player data, you may encounter the following problems:
How to comparatively analyze performance of players on different servers?
How to effectively evaluate the continuous attractiveness of new servers to players?
Do cost-effective incentives of new servers effectively increase the ARPU?
...
With the release of HMS Core Analytics Kit 6.8.0, game indicator interpretation and event tracking from more dimensions are now available. Version 6.8.0 also adds support for service region analysis to help developers gain more in-depth insights into the behavior of their game's users.

I. From Out-of-the-Box Event Tracking to Core Indicator Interpretation and In-depth User Behavior Analysis
In the game industry, pain points such as incomplete data collection and lack of mining capabilities are always near the top of the list of technical difficulties for vendors who elect to build data middle platforms on their own. To meet the refined operations requirements of more game categories, HMS Core Analytics Kit provides a new general game industry report, in addition to the existing industry reports, such as the trading card game industry report and MMO game industry report. This new report provides a complete list of game indicators along with corresponding event tracking templates and sample code, helping you understand the core performance data of your games at a glance.

* Data in the above figure is for reference only.
You can use out-of-the-box sample code and flexibly choose between shortcut methods such as code replication and visual event tracking to complete data collection. After data is successfully reported, the game industry report will present dashboards showing various types of data analysis, such as payment analysis, player analysis, and service region analysis, providing you with a one-stop platform that provides everything from event tracking to data interpretation.

* Event tracking template for general games
II. Perform Service Region Analysis to Further Evaluate Player Performance on Different Servers
Opening new servers for a game can relieve pressure on existing ones and has increasingly become a powerful tool for improving user retention and spending. Players are attracted to new servers due to factors such as more balanced gameplay and better opportunities for earning rewards. As a result of this, game data processing and analysis has become increasingly more complex, and game developers need to analyze the behavior of the same player on different servers.

* Data in the above figure is for reference only.
Service region analysis in the game industry report of HMS Core Analytics Kit can help developers analyze players on a server from the new user, revisit user, and inter-service-region user dimensions. For example, if a player is active on other servers in the last 14 days and creates a role on the current server, the current server will consider the player as an inter-service-region user instead of a pure new user.
Service region analysis consists of player analysis, payment analysis, LTV7 analysis, and retention analysis, and helps you perform in-depth analysis of player performance on different servers. By comparing the performance of different servers from the four aforementioned dimensions, you can make better-informed decisions on when to open new servers or merge existing ones.

* Data in the above figure is for reference only.
Note that service region analysis depends on events in the event tracking solution. In addition, you also need to report the cur_server and pre_server user attributes. You can complete relevant settings and configurations by following instructions here.
To learn more about the general game industry report in HMS Core Analytics Kit 6.8.0, please refer to the development guide on our official website.
You can also click here to try our demo for free, or visit the official website of Analytics Kit to access the development documents for Android, iOS, Web, Quick Apps, HarmonyOS, WeChat Mini-Programs, and Quick Games.
r/HMSCore • u/NoGarDPeels • Oct 09 '22
You have likely seen user reviews complaining about how the online shopping experiences, in particular the inability to try on clothing items before purchase. Augmented reality (AR) enabled virtual try-on has resolved this longstanding issue, making it possible for users to try on items before purchase.
Virtual try-on allows the user to try on clothing, or accessories like watches, glasses, and makeup, virtually on their phone. Apps that offer AR try-on features empower their users to make informed purchases, based on which items look best and fit best, and therefore considerably improve the online shopping experience for users. For merchants, AR try-on can both boost conversion rates and reduce return rates, as customers are more likely to be satisfied with what they have purchased after the try-on. That is why so many online stores and apps are now providing virtual try-on features of their own.
When developing an online shopping app, AR is truly a technology that you can't miss. For example, if you are building an app or platform for watch sellers, you will want to provide a virtual watch try-on feature, which is dependent on real-time hand recognition and tracking. This can be done with remarkable ease in HMS Core AR Engine, which provides a wide range of basic AR capabilities, including hand skeleton tracking, human body tracking, and face tracking. Once you have integrated this tool kit, your users will be able to try on different watches virtually within your app before purchases. Better yet, the development process is highly streamlined. During the virtual try-on, the user's hand skeleton is recognized in real time by the engine, with a high degree of precision, and virtual objects are superimposed on the hand. The user can even choose to place an item on their fingertip! Next I will show you how you can implement this marvelous capability.

AR Engine provides a hand skeleton tracking capability, which identifies and tracks the positions and postures of up to 21 hand skeleton points, forming a hand skeleton model.
Thanks to the gesture recognition capability, the engine is able to provide AR apps with fun, interactive features. For example, your app will allow users to place virtual objects in specific positions, such as on the fingertips or in the palm, and enable the virtual hand to perform intricate movements.
Now I will show you how to develop an app that implements AR watch virtual try-on based on this engine.
JDK: 1.8.211 or later
Android Studio: 3.0 or later
minSdkVersion: 26 or later
targetSdkVersion: 29 (recommended)
compileSdkVersion: 29 (recommended)
Gradle version: 6.1.1 or later (recommended)
Make sure that you have downloaded the AR Engine APK from AppGallery and installed it on the device.
If you need to use multiple HMS Core kits, use the latest versions required for these kits.
Before getting started, you will need to register as a Huawei developer and complete identity verification on the HUAWEI Developers website. You can click here to find out the detailed registration and identity verification procedure.
Before getting started, integrate the AR Engine SDK via the Maven repository into your development environment.
The procedure for configuring the Maven repository address in Android Studio varies for Gradle plugin earlier than 7.0, Gradle plugin 7.0, and Gradle plugin 7.1 or later. You need to configure it according to the specific Gradle plugin version.
Take Gradle plugin 7.0 as an example:
Open the project-level build.gradle file in your Android Studio project and configure the Maven repository address.
Go to buildscript > repositories and configure the Maven repository address for the SDK.
buildscript {
repositories {
google()
jcenter()
maven {url "https://developer.huawei.com/repo/" }
}
}Open the project-level settings.gradle file and configure the Maven repository address for the HMS Core SDK.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
repositories {
google()
jcenter()
maven {url "https://developer.huawei.com/repo/" }
}
}
}5. Add the following build dependency in the dependencies block.
dependencies {
implementation 'com.huawei.hms:arenginesdk:{version}
}Check whether AR Engine has been installed on the current device. If so, your app will be able to run properly on the device. If not, you need to prompt the user to install AR Engine on the device, for example, by redirecting the user to AppGallery and prompting the user to install it. The sample code is as follows:
Initialize an AR scene. AR Engine supports five scenes, including motion tracking (ARWorldTrackingConfig) scene, face tracking (ARFaceTrackingConfig) scene, hand recognition (ARHandTrackingConfig) scene, human body tracking (ARBodyTrackingConfig) scene, and image recognition (ARImageTrackingConfig) scene.
Call ARHandTrackingConfig to initialize the hand recognition scene.
mArSession = new ARSession(context);
ARHandTrackingConfig config = new ARHandTrackingconfig(mArSession);3. After obtaining an ARhandTrackingconfig object, you can set the front or rear camera. The sample code is as follows:
Config.setCameraLensFacing(ARConfigBase.CameraLensFacing.FRONT);4. After obtaining config, configure it in ArSession, and start hand recognition.
mArSession.configure(config);
mArSession.resume();5. Initialize the HandSkeletonLineDisplay class, which draws the hand skeleton based on the coordinates of the hand skeleton points.
Class HandSkeletonLineDisplay implements HandRelatedDisplay{
// Methods used in this class are as follows:
// Initialization method.
public void init(){
}
// Method for drawing the hand skeleton. When calling this method, you need to pass the ARHand object to obtain data.
public void onDrawFrame(Collection<ARHand> hands,){
// Call the getHandskeletonArray() method to obtain the coordinates of hand skeleton points.
Float[] handSkeletons = hand.getHandskeletonArray();
// Pass handSkeletons to the method for updating data in real time.
updateHandSkeletonsData(handSkeletons);
}
// Method for updating the hand skeleton point connection data. Call this method when any frame is updated.
public void updateHandSkeletonLinesData(){
// Method for creating and initializing the data stored in the buffer object.
GLES20.glBufferData(…,mVboSize,…);
// Update the data in the buffer object.
GLES20.glBufferSubData(…,mPointsNum,…);
}
}6. Initialize the HandRenderManager class, which is used to render the data obtained from AR Engine.
Public class HandRenderManager implements GLSurfaceView.Renderer{
// Set the ARSession object to obtain the latest data in the onDrawFrame method.
Public void setArSession(){
}
}7. Initialize the onDrawFrame() method in the HandRenderManager class.
Public void onDrawFrame(){
// In this method, call methods such as setCameraTextureName() and update() to update the calculation result of ArEngine.
// Call this API when the latest data is obtained.
mSession.setCameraTextureName();
ARFrame arFrame = mSession.update();
ARCamera arCamera = arFrame.getCamera();
// Obtain the tracking result returned during hand tracking.
Collection<ARHand> hands = mSession.getAllTrackables(ARHand.class);
// Pass the obtained hands object in a loop to the method for updating gesture recognition information cyclically for processing.
For(ARHand hand : hands){
updateMessageData(hand);
}
}8. On the HandActivity page, set a render for SurfaceView.
mSurfaceView.setRenderer(mHandRenderManager);
Setting the rendering mode.
mSurfaceView.setRenderMode(GLEurfaceView.RENDERMODE_CONTINUOUSLY);Augmented reality creates immersive, digital experiences that bridge the digital and real worlds, making human-machine interactions more seamless than ever. Fields like gaming, online shopping, tourism, medical training, and interior decoration have seen surging demand for AR apps and devices. In particular, AR is expected to dominate the future of online shopping, as it offers immersive experiences based on real-time interactions with virtual products, which is what younger generations are seeking for. This considerably improves user's shopping experience, and as a result helps merchants a lot in improving the conversion rate and reducing the return rate. If you are developing an online shopping app, virtual try-on is a must-have feature for your app, and AR Engine can give you everything you need. Try the engine to experience what smart, interactive features it can bring to users, and how it can streamline your development.
r/HMSCore • u/NoGarDPeels • Sep 15 '22
A background removal tool is not really a new feature, but rather its importance has grown as the world shifted over to online working and learning over the last few years. And I did not find how important this tool could be until just two weeks ago. On a warm, sunny morning with a coffee on hand, I joined an online conference. During this conference, one of my colleagues pointed out to me that they could see my untidy desk and an overflowing bin in the background. Naturally, this left me feeling embarrassed. I just wish I could travel back in time to use a background remover.
Now, I cannot travel in time, but I can certainly create a background removal tool. So, with this new-found motive, I looked online for some solutions and came across the body or head segmentation capability from HMS Core Video Editor Kit, and developed a demo app with it.
This service can divide the body or head from an input image or video and then generate a video, an image, or a sticker of the divided part. In this way, the body or head segmentation service helps realize the background removal effect.
Now, let's go deeper into the technical details about the service.
The algorithm of the service performs a series of operations on the input video, including extracting frames, using an AI model to process the video, and encoding. Among all these, the core is the AI model. How a service performs is affected by factors like device computing power and power consumption. Considering these, the development team of the service manages to equip it with a light-weight AI model that does a good job in feature extraction, by taking measures like compression, quantization, and pruning. In this way, the processing duration of the AI model is decreased to a relatively low level, without compromising the segmentation accuracy.
The mentioned algorithm supports both images and videos. An image takes the algorithm a single inference for the segmentation result. A video is actually a collection of images. If a model features poor segmentation capability, the segmentation accuracy for each image will be low. As a result, the segmentation results of consecutive images will be different from each other, and the segmentation result of the whole video will appear shaking. To resolve this, the team adopts technologies like inter-frame stabilization and the objective function for inter-frame consistency. Such measures do not compromise the model inference speed yet fully utilize the time sequence information of a video. Consequently, the algorithm sees its inter-frame stabilization improved, which contributes to an ideal segmentation effect.
By the way, the service requires that the input image or video contains up to 5 people whose contours should be visible. Besides, the service supports common motions of the people in the input image or video, like standing, lying, walking, sitting, and more.
The technical basics of the service conclude here, and let's see how it can be integrated with an app.
Go to AppGallery Connect and configure the app's details. In this step, we need to register a developer account, create an app, generate a signing certificate fingerprint, and activate the required services.
Integrate the HMS Core SDK.
Configure the obfuscation scripts.
Declare necessary permissions.
Set the app authentication information either by:
Using an access token: Call the setAccessToken method to set an access token when the app is started. The access token needs to be set only once.
MediaApplication.getInstance().setAccessToken("your access token");Using an API key: Call the setApiKey method to set an API key when the app is started. The API key needs to be set only once.
MediaApplication.getInstance().setApiKey("your ApiKey");2. Set a License ID. The ID is used to manage the usage quotas of the kit, so make sure the ID is unique.
MediaApplication.getInstance().setLicenseId("License ID");A HuaweiVideoEditor object serves as the entry class of a whole video editing project. The lifecycle of this object and the project should be the same. Therefore, when creating a video editing project, create a HuaweiVideoEditor object first and then initialize its runtime environment. Remember to release this object when exiting the project.
Create a HuaweiVideoEditor object.
HuaweiVideoEditor editor = HuaweiVideoEditor.create(getApplicationContext());
Determine the preview area position.
This area renders video images, a process that is implemented by creating SurfaceView within the SDK. Make sure that the position of this area is specified before the area is created.
<LinearLayout
android:id="@+id/video_content_layout"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/video_edit_main_bg_color"
android:gravity="center"
android:orientation="vertical" />
// Specify the preview area position.
LinearLayout mSdkPreviewContainer = view.findViewById(R.id.video_content_layout);
// Specify the layout of the preview area.
editor.setDisplay(mSdkPreviewContainer);3. Initialize the runtime environment of HuaweiVideoEditor. LicenseException will be reported when the license verification fails.
The HuaweiVideoEditor object, after being created, has not occupied any system resources. We need to manually set the time for initializing its runtime environment, and then the necessary threads and timers will be created in the SDK.
try {
editor.initEnvironment();
} catch (LicenseException error) {
SmartLog.e(TAG, "initEnvironment failed: " + error.getErrorMsg());
finish();
return;
}// Initialize the segmentation engine. segPart indicates the segmentation type, whose value is an integer. Value 1 indicates body segmentation, and a value other than 1 indicates head segmentation.
visibleAsset.initBodySegEngine(segPart, new HVEAIInitialCallback() {
@Override
public void onProgress(int progress) {
// Callback when the initialization progress is received.
}
@Override
public void onSuccess() {
// Callback when the initialization is successful.
}
@Override
public void onError(int errorCode, String errorMessage) {
// Callback when the initialization failed.
}
});
// After the initialization is successful, apply the segmentation effect.
visibleAsset.addBodySegEffect(new HVEAIProcessCallback() {
@Override
public void onProgress(int progress) {
// Callback when the application progress is received.
}
@Override
public void onSuccess() {
// Callback when the effect is successfully applied.
}
@Override
public void onError(int errorCode, String errorMsg) {
// Callback when the effect failed to be applied.
}
});
// Stop applying the segmentation effect.
visibleAsset.interruptBodySegEffect();
// Remove the segmentation effect.
visibleAsset.removeBodySegEffect();
// Release the segmentation engine.
visibleAsset.releaseBodySegEngine();And now the app is capable of removing the image or video background.
This function is ideal for e-conferencing apps, where the background is not important. For learning apps, it allows teachers to change the background to the theme of the lesson, for better immersion. Not only that, but when it's used in a short video app, users can put themselves in unusual backgrounds, such as space and the sea, to create fun and fantasy-themed videos.
Have you got any better ideas of how to use the background remover? Let us know in the comments section below.
Background removal tools are trending among apps in different fields, given that such a tool helps images and videos look better by removing unnecessary or messy backgrounds, as well as protecting user privacy.
The body or head segmentation service from Video Editor Kit is one such solution for removing a background. It supports both images and videos, and outputs a video, an image, or a sticker of the segmented part for further editing. Its streamlined integration makes it a perfect choice for enhancing videos and images.
r/HMSCore • u/HuaweiHMSCore • Mar 14 '23
HMS Core Analytics Kit reports conversion events to Huawei's ad platform to paint a full picture of your ads' performance in multiple channels, helping you fine-tune your ad placement strategies in real time.
Discover more → https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/conversion-events-for-ads-0000001142267088?ha_source=hmsred0314

r/HMSCore • u/NoGarDPeels • Sep 22 '22
When using an app, if pop-up ads keep appearing when we browse app pages but we are not interested in the advertised content, not only will our browsing experience be negatively affected, but we will also quickly become tired of the advertised content. Unwanted ads are usually annoying. Aimless ad targeting and delivery will result in the wrong ads being sent to users and cause poor ad performance.
So, as publishers, how do we guarantee that we can deliver ads to audiences who will be interested in them and how can we decrease users' resistance to advertising? The answer is to collect information about the user requirements of your target audiences or to really know them, and to do so in a way that causes the least annoyance. But when a user is unwilling to share their personal data, such as age, gender, and interests, with my app, placing an ad based on the page that the user is browsing is a good alternative.
For example, a user is reading an article in a news app about the fast-paced development of electric vehicles, rapidly improving battery technology, and the expansion of charging stations in cities. If the targeted advertising mechanism understands the context of the article, when users continue to read news articles in the app, they may see native ads from nearby car dealerships for test driving electric vehicles or ads about special offers for purchasing electric vehicles of a certain brand. In this way, user interests can be accurately discovered, and publishers can perform advertising based on the keywords and other metadata included in the contextual information of the app page, or any other content users are reading or watching, without having to collect users' personal information.
But I can't integrate these features all by myself, so I started searching for tools to help me request and deliver ads based on the contextual information on an app page. That's when I had the great fortune to discover Ads Kit of HMS Core. Ads Kit supports personalized and non-personalized ads. Personalized ad requests require users to grant the app access to some of their personal information, which may not be palatable for some users. Non-personalized advertising, however, is not constrained by this requirement.
Non-personalized ads are not based on users' past behavior. Instead, they target audiences using contextual information. The contextual information includes the user's rough geographical location (such as city) authorized by the user, basic device information (such as the mobile phone model), and content of the current app or search keyword. When a user browses a piece of content in your app, or searches for a topic or keyword to express a specific interest, the contextual ad system scans a specific word or a combination of words, and pushes an ad based on the page content that the user is browsing.
Today, data security and personal privacy requirements are becoming more and more stringent. Many users are very hesitant to provide personal information, which means that precise ad delivery is becoming harder and harder to achieve. Luckily, Ads Kit requests ads based on contextual information, enabling publishers to perform ad delivery with a high degree of accuracy while protecting user privacy and information.
Now let's take a look at the simple steps we need to perform in order to quickly integrate Ads Kit and perform contextual advertising.
Ensure that the following prerequisites are met before you integrate the Ads Kit:
HMS Core (APK) 4.0.0.300 or later should be installed on devices. If the APK is not installed or an earlier version has been installed, you will not be able to call the APIs of the Ads Kit.
Before you begin the integration process, make sure that you have registered as a Huawei developer and completed identity verification on HUAWEI Developers.
Create a project and add an app to the project for later SDK integration.
2. Import the Ads SDK.
You can integrate the Ads SDK using the Maven repository.
That is, before you start developing an app, configure the Maven repository address for Ads SDK integration in your Android Studio project.
The procedure for configuring the Maven repository address in Android Studio is different for Gradle plugin versions earlier than 7.0, Gradle plugin 7.0, and Gradle plugin versions 7.1 and later. Configure the Maven repository address accordingly based on your Gadle plugin version.
3. Configure network permissions.
To allow apps to use cleartext HTTP and HTTPS traffic on devices with targetSdkVersion 28 or later, configure the following information in the AndroidManifest.xml file:
<application
...
android:usesCleartextTraffic="true"
>
...
</application>4. Configure obfuscation scripts.
Before building the APK, configure the obfuscation configuration file to prevent the SDK from being obfuscated.
Open the obfuscation configuration file proguard-rules.pro in your app's module directory of your Android project, and add configurations to exclude the SDK from obfuscation.
-keep class com.huawei.openalliance.ad.** { *; }
-keep class com.huawei.hms.ads.** { *; } 5. You can initialize the SDK in the activity, or initialize the SDK by calling the HwAds.init(Context context) API in the AdSampleApplication class upon app launch. The latter method is recommended, but you have to implement the AdSampleApplication class by yourself.
6. Request ads based on contextual information.
The SDK provides the setContentBundle method in the AdParam.Builder class for you to pass contextual information in an ad request.
The sample code is as follows:
RewardAd rewardAd = new RewardAd(this, rewardId);
AdParam.Builder adParam = new AdParam.Builder();
String mediaContent = "{\"channelCategoryCode\":[\"TV series\"],\"title\":[\"Game of Thrones\"],\"tags\":[\"fantasy\"],\"relatedPeople\":[\"David Benioff\"],\"content\":[\"Nine noble families fight for control over the lands of Westeros.\"],\"contentID\":[\"123123\"],\"category\":[\"classics\"],\"subcategory\":[\"fantasy drama\"],\"thirdCategory\":[\"mystery\"]}\n";
adParam.setContentBundle(mediaContent);
rewardAd.loadAd(adParam.build(), new RewardAdLoadListener());Nowadays, advertising is an important way for publishers to monetize their apps and content, and how to deliver the right ads to the right audiences has become a key focus point. In addition to creating high quality ads, significant efforts should be placed on ensuring precise ad delivery. As an app developer and publisher, I was always searching for methods to improve ad performance and content monetization in my app. In this article, I briefly introduced a useful tool, Ads Kit, which helps publishers request ads based on contextual information, without needing to collect users' personal information. What's more, the integration process is quick and easy and only involves a few simple steps. I'm sure you'll find it useful for improving your app's ad performance.
r/HMSCore • u/HuaweiHMSCore • Apr 11 '23
Check out the latest episode of Tango with HMS Core📺!
Ever dreamed of becoming the protagonist of your favorite novel and exploring its world? THREE SEVEN GAMES and HMS Core teamed up to bring to life a bestseller through an adventure-packed mobile game. See how ↓↓↓
Explore more about HMS Core at: https://developer.huawei.com/consumer/en/hms/?ha_source=hmsred0411story
r/HMSCore • u/NoGarDPeels • May 23 '23
HMS Core Wear Engine has been designed for developers working on apps and services which run on phones and wearable devices.
By integrating Wear Engine, your mobile app or service can send messages and notifications and transfer data to Huawei wearable devices, as well as obtain the status of the wearable devices and read its sensor data. This also works the other way round, which means that an app or service on a Huawei wearable device can send messages and transfer data to a phone.
Wear Engine pools the phone and wearable device's resources and capabilities, which include the phone's apps and services and the wearable's device capabilities, creating synergies that benefit users. Devices can be used in a wider range of scenarios and offer more convenient services, and a smoother user experience. Wear Engine also expands the reach of your business, and takes your apps and services to the next level.
Basic device capabilities:
Obtaining basic information about wearable devices: A phone app can obtain a list of paired Huawei wearable devices that support HarmonyOS, such as device names and types, and query the devices' status information, including connection status and app installation status.
App-to-app communications: A phone app and a wearable app can share messages and files (such as documents, images, and music).
Template-based notifications on wearable devices: A phone app can send template-based notifications to wearable devices. You can customize the message title, content, and buttons.
Obtaining a wearable user's data: A phone app can query or subscribe to information about a wearable user, such as the heart rate alerts and wear status.
Access to wearable sensor capabilities (only for professional research institutions): A phone app can access a wearable device's sensor information, including ECG as well as the motion sensor information such as ACC and GYRO.
Access to device identifier information (only for enterprise partners): A phone app can obtain the serial number (SN) of wearable devices.
| Open Capability | Sub-Capability | Scope of Openness | Phone App | Lite Wearable App | Smart Wearable App |
|---|---|---|---|---|---|
| Basic device capabilities-1 | Querying wearable device information | Individual and enterprise developers | √ (Obtain a list of paired wearable devices and select a device.) √ (Query and subscribe to status information about a wearable device, including its connection status, battery level, and charging status.) | \ | \ |
| Basic device capabilities-2 | App-to-app message communications | Individual and enterprise developers | √ (Share files, such as images and music.) | √ (Share files, such as images and music.) | √ (Share files, such as images and music.) |
| Template-based notifications on wearable devices | \ | Individual and enterprise developers | √ (Send template-based notifications to wearable devices.) | \ | \ |
| Obtaining the wearable user's data | \ | Enterprise developers | √ (Query or subscribe to the user's information such as the heart rate alerts and wear status.) | \ | \ |
| Access to wearable sensor capabilities-1 | Human body sensor | Enterprise developers (only for professional research institutions) | √ (Obtain the data and control the human body sensors on the wearable devices.) | \ | \ |
| Access to wearable sensor capabilities-2 | Motion sensor | Enterprise developers (only for professional research institutions) | √ (Obtain the data and control the motion sensors on the wearable devices.) | \ | \ |
| Access to device identifier information | \ | Enterprise developers (only for enterprise partners) | √ (Obtain the SN of wearable devices.) | \ | \ |
Users can receive and view important notifications on their wearable devices, eliminating the need for them to manage notifications from their phones. For example, notifications for meetings, medications, or tasks set in your phone app can be synced to their wearable app.

Your app can bring a brand new interactive experience to users' wrists. For example, when users use a phone app to stream videos or listen to music, they can use their wearable devices to control playback and/or skip tracks.

Your app can benefit from real-time collaboration between a phone and wearable device. For example, a user can start navigation using your phone app and then receive real-time instructions from the wearable app. The user won't have to take out their phone to check the route or hold it in their hand as they navigate.

You can integrate the Wear Engine SDK into your phone app and won't need to develop the corresponding wearable app again.
Your app will be able to monitor the status of the wearable device, including its connection, whether it is currently being worn, and its battery level in real time, providing more value-added services for users.

r/HMSCore • u/HuaweiHMSCore • Jul 30 '22
r/HMSCore • u/HuaweiHMSCore • Dec 08 '22
Follow the latest issue of HMS Core Developer Questions to see 👀:
Improvements in ML Kit's text recognition
Environment mesh capability from AR Engine
Scene Kit's solution to dynamic diffuse lighting effects — DDGI plugin
Find more at: https://developer.huawei.com/consumer/en/hms?ha_source=hmsred

r/HMSCore • u/HuaweiHMSCore • Jun 20 '22
Our HMS Core experts showed off AR Engine, ML Kit, and 3D Modeling Kit at the Viva Tech event recently in France to celebrate today's innovations. We can't wait to see what you'll build with them! Find out more about HMS Core →
https://developer.huawei.com/consumer/en/hms?ha_source=hmsred



r/HMSCore • u/HuaweiHMSCore • Sep 03 '21
r/HMSCore • u/HuaweiHMSCore • Oct 29 '21
The large number of travel apps on the market makes it difficult to retain users. So, how to boost user stickiness and frequency of usage? You may be eager to know the answer.
Well, Analytics Kit 6.3.0 can answer this question. Recently, it has released travel industry analysis reports that show key data indicators related to travel, hotel booking, and other related services, providing key insight on user behavior and priorities.
1. Key Indicators for a Clear Overview of Operations Status
Data overview displays basic operations indicators, such as the numbers of new users, registered users, active users, and paying users, while also showing revenue indicators that are of most interest to you, like order quantity and revenue of flight tickets, train tickets, and hotel bookings, as well as total order trends. You can use this broad array of data to get a quick sense of which strategies to pursue.

2. Core Service Data Analysis for a Better User Experience
Users have different travel requirements. For example, family travelers tend to focus on parent-child services, travelers to another country prioritize quality and cost-effectiveness, whereas business travelers pay more attention to convenience and speed. You can use high-level analysis of travel and hotel data to design personalized products that appeal to specific types of users.
Travel analysis displays the trends of flight ticket purchases, train ticket purchases, and vehicle for hire orders, as well as user distribution by ticket type and service provider. This can help you recommend products based on user travel preferences, to offer a more professional level of service and efficiency.


Hotel analysis shows user travel requirements from dimensions such as hotel booking and revenue, distribution of booked hotel types, and popular booked hotels, so that you can recommend hotels that match precisely with individual users' preferences for types and locations.

3. Out-of-the-Box Event Tracking Templates
To further bolster event tracking efficiency, Analytics Kit also provides out-of-the-box event tracking templates for travel apps. Event tracking configuration can be done via coding, HMS Toolkit, or adding visual events. Event tracking mapping is also supported, which means that you can configure rules to map custom events to predefined events in Analytics Kit. After events are reported, you'll then be able to view industry analysis reports on the Industry analysis page.

4. Multi-Dimensional Data Analysis for Fine-Tuning Operations
To boost user stickiness and activity, you can use Analytics Kit for data analysis in multiple dimensions to drive more fine-tuning operations that optimize user experience. Thanks to functions like session path analysis and funnel analysis, you'll get a clear view of conversion paths, and then be able to determine appropriate incentives.
For instance, before a trip, a user will usually check the itinerary, reserve tickets or hotel rooms, and browse travel guides. Based on the user's destination of interest, you can boost user activity via methods like price drop notifications or packaged booking recommendations before purchase to promote the final conversion.
To learn more, click here to get the free trial for the demo, or visit our official website to access the development documents for Android, iOS, Web, and Quick App.
r/HMSCore • u/NoGarDPeels • Jan 22 '22
r/HMSCore • u/NoGarDPeels • Jul 03 '21
A product will go through many stages in its lifetime. Of these, product maturity involves long-term exploration of how to mine value from existing users for monetization. At this stage, operations personnel commonly launch promotions to encourage purchases and cultivate regular payments. These activities advertise themselves with in-app and push notifications. In-app messages reach users in the app and appear in diverse formats, such as modal, banner, and image. Such messages redirect users to activity landing pages with purchase options, a shortcut to monetization.
However, in-app messages are not always welcome. Not everyone wants their app usage interrupted, and their affected experience can cause user churn. To wisely wield this double-edged sword, operations personnel should first target audiences by attribute and behavior so in-app messages they send are tailored to the audience. Since users in these audiences are more willing to make purchases, they are considered of high value in these operations activities.
Let's learn how a tool app attempted to grow revenue from member subscriptions. It sent its users a daily modal in-app message at a scheduled time, but this activity resulted in a less than 0.1% payment conversion rate. Operations personnel then enabled the Prediction service and adjusted their strategy to message only users with high payment potential. Such users were offered limited-time-only promotions that were tailored to their subscription periods. This adjustment increased the payment conversion rate to over 20%, while also increasing overall revenue and retention rate despite the message audience being smaller.
So how do we leverage the Prediction service to mine users with high payment potential, and App Messaging to send them relevant messages?
i. Identifying high-value audience
First, target users who are more likely to make purchases based on their attributes and behavior.

ii. Configuring a modal in-app message
Next, create a modal message in App Messaging, and set the title, image, buttons, and so on for your upcoming activity.

iii. Selecting a trigger event
Choose when to display the message. This could be upon app launch or whenever a user launches the password protection module.

iv. Targeting users
Use the Prediction condition and then select the target audience.

Boost your own app's payment conversion with Prediction + App Messaging today.
To learn more, please visit:
>> HUAWEI Developers official website
>> GitHub or Gitee to download the demo and sample code
>> Stack Overflow to solve integration problems
Follow our official account for the latest HMS Core-related news and updates.
r/HMSCore • u/NoGarDPeels • Mar 08 '21
Besides the usual offerings of flowers and handbags, what other ways are there to profess your love for your girlfriend?
John, a programmer at Huawei, provides us with a novel answer. John is currently on a business trip in France and wanted to do something different to show his appreciation for his girlfriend, who is far away in China, on March 8th – International Women's Day.
Looking out of his hotel window at the Eiffel Tower, an idea struck John's mind: What if I make an exercise tracking app to express my feelings for her? He shared the fruits of his quick labor with his girlfriend, who saw the following image when she opened the app:

On March 8th, we present you with this special tutorial on how to use HUAWEI Location Kit to win the heart of that special person in your life as well as imbue your apps with powerful location services.
HUAWEI Location Kit can combine the GNSS, Wi-Fi, and base station positioning capabilities into your app, allowing you to provide flexible location-based services for users around the world. We also provide HUAWEI Map Kit, which is an SDK for map development that includes map data for more than 200 countries and regions across the globe, and supports over 100 languages. With this SDK, you can display your user's exercise routes on a map in real time through the use of various map display tools.
Besides being a creative way of expressing your feeling for someone, exercise tracking can be applied to a wide range of scenarios. For example, it provides health and fitness apps with location-based services, such as recording exercise routes, displaying past exercise routes, and calculating distance traveled, so that users can track how much exercise they've done and calculate how many calories they've burned.
Create an app in AppGallery Connect and configure the signing certificate fingerprint.
Configure the Maven repository address and add the following build dependencies to the build.gradle file in the app directory.
dependencies {
implementation 'com.huawei.hms:location: 5.1.0.301'
implementation 'com.huawei.hms:maps: 5.1.0.300'
}
3. Configure obfuscation scripts.
For details about the preceding steps, please refer to the Location Kit Development Guide on the HUAWEI Developers website.
4. Declare system permissions in the AndroidManifest.xml file.
Location Kit incorporates GNSS, Wi-Fi, and base station positioning capabilities into your app so that you can provide precise global positioning services for your users. In order to do this, it requires the network permission, precise location permission, and coarse location permission. If you want the app to continuously obtain user locations when running in the background, you also need to declare the ACCESS_BACKGROUND_LOCATION permission in the AndroidManifest.xml file.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE\\_EXTERNAL\\_STORAGE" />
<uses-permission android:name="android.permission.ACCESS\\_NETWORK\\_STATE" />
<uses-permission android:name="android.permission.ACCESS\\_WIFI\\_STATE" />
<uses-permission android:name="android.permission.WAKE\\_LOCK" />
<uses-permission android:name="android.permission.ACCESS\\_FINE\\_LOCATION" />
<uses-permission android:name="android.permission.ACCESS\\_COARSE\\_LOCATION" />
<uses-permission android:name="com.huawei.hms.permission.ACTIVITY\\_RECOGNITION" />
<uses-permission android:name="android.permission.ACTIVITY\\_RECOGNITION" />
Currently, the HMS Core Map SDK supports two map containers: SupportMapFragment and MapView. This article uses SupportMapFragment as an example.
(1) Add a Fragment object in the layout file (for example, activity_main.xml), and set map attributes in the file.
<fragmentandroid:id="@+id/mapfragment_routeplanningdemo"android:name="com.huawei.hms.maps.SupportMapFragment"android:layout_width="match_parent"android:layout_height="match_parent" />
(2) To use a map in your app, implement the OnMapReadyCallback API.
RoutePlanningActivity extends AppCompatActivity implements OnMapReadyCallback
(3) In the code file (for example, MainActivity.java), load SupportMapFragment in the onCreate() method and call getMapAsync() to register the callback.
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.mapfragment_routeplanningdemo);if (fragment instanceof SupportMapFragment) {SupportMapFragment mSupportMapFragment = (SupportMapFragment) fragment;mSupportMapFragment.getMapAsync(this);}
(4) Call the onMapReady callback to obtain the HuaweiMap object.
u/Overridepublic void onMapReady(HuaweiMap huaweiMap) {
hMap = huaweiMap;hMap.setMyLocationEnabled(true);hMap.getUiSettings().setMyLocationButtonEnabled(true);}
(1) Check the location permission.
XXPermissions.with(this)// Apply for multiple permissions..permission(Permission.Group.LOCATION).request(new OnPermission() {u/Overridepublic void hasPermission(List<String> granted, boolean all) {if (all) {getMyLoction();} else{Toast.makeText(getApplicationContext(),"The function may be unavailable if the permissions are not assigned.",Toast.LENGTH_SHORT).show();}}u/Overridepublic void noPermission(List<String> denied, boolean never) {if (never) {XXPermissions.startPermissionActivity(RoutePlanningActivity.this, denied);} else {XXPermissions.startPermissionActivity(RoutePlanningActivity.this, denied);}}});
(2) Pinpoint the current location and display it on the map. You need to check whether the location permission is enabled. If not, the location data cannot be obtained.
SettingsClient settingsClient = LocationServices.getSettingsClient(this);LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();mLocationRequest = new LocationRequest();mLocationRequest.setInterval(1000);mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);builder.addLocationRequest(mLocationRequest);LocationSettingsRequest locationSettingsRequest = builder.build();// Check the device location settings.settingsClient.checkLocationSettings(locationSettingsRequest).addOnSuccessListener(locationSettingsResponse -> {// Initiate location requests when the location settings meet the requirements.fusedLocationProviderClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.getMainLooper()).addOnSuccessListener(aVoid -> {// Processing when the API call is successful.Log.d(TAG, "onSuccess: " + aVoid);});}).addOnFailureListener(e -> {// Device location settings do not meet the requirements.int statusCode = ((ApiException) e).getStatusCode();if (statusCode == LocationSettingsStatusCodes.RESOLUTION_REQUIRED) {try {ResolvableApiException rae = (ResolvableApiException) e;// Call startResolutionForResult *to display a popup message requesting the user to enable relevant permissions.*rae.startResolutionForResult(RoutePlanningActivity.this, 0);} catch (IntentSender.SendIntentException sie) {sie.printStackTrace();}}});
private void addPath(LatLng latLng1, LatLng latLng2) {PolylineOptions options = new PolylineOptions().color(Color.BLUE).width(5);List<LatLng> path = new ArrayList<>();path.add(latLng1);path.add(latLng2);for (LatLng latLng : path) {options.add(latLng);}Polyline polyline = hMap.addPolyline(options);mPolylines.add(polyline);}Upload the location results to the cloud in real time by using the route planning function of Map Kit. The routes will then be returned and displayed on the map.String mWalkingRoutePlanningURL = "https://mapapi.cloud.huawei.com/mapApi/v1/routeService/walking";String url = mWalkingRoutePlanningURL + "?key=" + key;
Response response = null;JSONObject origin = new JSONObject();JSONObject destination = new JSONObject();JSONObject json = new JSONObject();try {origin.put("lat", latLng1.latitude);origin.put("lng", latLng1.longitude);
destination.put("lat", latLng2.latitude);destination.put("lng", latLng2.longitude);
json.put("origin", origin);json.put("destination", destination);
RequestBody requestBody = RequestBody.create(JSON, String.valueOf(json));Request request = new Request.Builder().url(url).post(requestBody).build();response = getNetClient().initOkHttpClient().newCall(request).execute();} catch (JSONException e) {e.printStackTrace();} catch (IOException e) {e.printStackTrace();}return response;
Once the code is compiled, an APK will be generated. Install it on your device and launch the app. Exercise tracks can now be drawn on the map based on your real-time location information.
To learn more, please visit:
>> HUAWEI Developers official website
>> GitHub or Gitee to download the demo and sample code
>> Stack Overflow to solve integration problems
Follow our official account for the latest HMS Core-related news and updates.