English | 中文

HMS Core provides a solution that assists e-commerce apps with quick customer acquisition and improved conversion rates, for sustainable business growth.
The sample project provides a shopping demo app with related HMS Core kits integrated, demonstrating how to use the HMS Core solution for shopping apps. The demo covers the complete shopping process other than payment.
Scan the QR code for a specific region with your browser to try out the demo app.
China
|
Asia, Africa, and Latin America
|
Europe
|
Russia
|
Demo app screens and used HMS Core features are as follows: - Product list screen - Product details screen - Favorite products and shopping cart - Product display via picture, video, or 3D modeling - Search by scanning barcode - Product search via picture or voice - QR code payment and generation - One-tap sign-in and sign-out - Product order reminder pushing - User location pinpointing - User address acquisition - Membership service - System integrity check - User comment and automatic translation of comments - AR fitting - Bank card recognition - Geofence - Smart customer service bot - Bonus point service - Offline store guidance - Preferential price marketing - Product sharing
Compilation environment
Procedure 1. Clone the code repository.
git clone https://github.com/HMS-Core/hms-ecommerce-demo.git
You can also download the ZIP package that contains the project.
Copy your JKS file and the agconnect-services.json file to the app directory. For details about how to generate the JKS file and agconnect-services.json file, please refer to Configuring App Information in AppGallery Connect.
Update the JKS file information and app ID in the app-level build.gradle file.
Run the following command to compile the demo app:
cd hms-ecommerce-demo
gradle clean
gradle build


You can use the following barcode to test the barcode-based purchase function.







Analytics Kit obtains basic usage information about the current app to analyze the app usage data for app optimization.
Scene Kit displays products through 3D modeling.

In-App Purchases bolsters the membership subscription for enjoying discounts for members.
Safety Detect evaluates the system integrity during app startup to ensure running environment security.







The shopping demo app simulates the real shopping process. Therefore, the quantity of products in the app is limited. Some functions are unavailable and some others are virtual.
You can visit the Reddit community to obtain the latest information about HMS Core and communicate with other developers.
If you have any questions about the sample code, try the following:
- Visit Stack Overflow, submit your questions, and tag them with huawei-mobile-services. Huawei experts will answer your questions.
- Visit the HMS Core section in the HUAWEI Developer Forum and communicate with other developers.
If you encounter any issues when using the sample code, submit your issues or submit a pull request.
The sample code is licensed under Apache License 2.0.
$ claude mcp add hms-ecommerce-demo \
-- python -m otcore.mcp_server <graph>