Synergies between Phones and Wearables Enhance the User Experience - Huawei Developers

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.
Benefits of using Wear Engine​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-1Querying wearable device informationIndividual 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-2App-to-app message communicationsIndividual 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-1Human body sensorEnterprise developers (only for professional research institutions)√ (Obtain the data and control the human body sensors on the wearable devices.)\\Access to wearable sensor capabilities-2Motion sensorEnterprise 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.)\\
Examples of Applications​Collaboration Between Phones and 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.
{
"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"
}
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.
Device Virtualization Between Phones and Wearable Devices​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.
References​
Wear Engine API References

Related

AppGallery Connect 10.5 | Build Apps with Ease, and Operate Them As You Please

This article is from HUAWEI Developer Forum which you can obtain latest news about Huawei products
Forum link: https://forums.developer.huawei.com/forumPortal/en/home
​
{
"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"
}
AppGallery Connect is a one-stop open service platform for the entire app lifecycle, designed to facilitate enhanced, and accelerated app building and running, giving you a leg up on the competition. AppGallery Connect 10.5, the platform's latest version, provides for a wholly optimized user experience, including a home page with futuristic visual effects, cross-platform app management capabilities, and access to a broad array of services, such as App Messaging, Cloud Storage, and Auth Service. These updates give you the tools to better build and operate your apps.
Brand-new home page
The home page has assumed a fresh new, user-friendly layout. The My projects entry enables you to manage apps of different platforms; Hot services provides a glimpse at trending services, and More services displays a brief overview of all available services. Service cards also provide direct access to corresponding services, sparing you the hassle of having to search for a desired service, and find it from a lengthy list.
Visit https://developer.huawei.com/consumer/cn/service/josp/agc/index.html to try out the new version now. You'll notice that AppGallery Connect has designed a unique icon for each service, making it easier than ever to identity them.
App Messaging
This service provides invaluable assistance for refined operations, by sending contextual messages to active users when specific events are triggered, boosting user engagement and stickiness. In-app messages can work in tandem with your app's activities. For instance, if you have a shopping app, it can display a message instructing the user to claim coupons upon repeated taps on an item by a user when authorized or after message subscription by the user. Or if you have a reading app, the app can automatically display messages to intensive users who have read for more than half an hour in a single session, offering a 20% discount off of subscriptions. These types of messages can successfully boost your app's conversion rate.
You have the option of using a pre-set style, or customizing the display of your in-app messages. Image messages are recommended if the content in the message is relatively simple.
Banner messages contain a thumbnail, with the message title and body, and are displayed at the top of the screen. Users only need to tap on the banner message to be directed to the corresponding page.
Pop-up messages are recommended for richer, and more complex content, as they consist of an image, title, and body, as well as up to two buttons. Examples of each message type are shown below:
Cloud Storage
Cloud Storage incorporates a treasure trove of premium storage, upload, and download functions for a wide range of different objects, including images, videos, and audio files. The Cloud Storage capability is bolstered by the following attributes:
1. Airtight protections, enabled by declarative security and automatic encryption mechanisms;
2. High degree of stability, thanks to the implementation of resumable transfer and intelligent network acceleration;
3. Autoscaling, to provide for automatic resource scheduling and enterprise-level storage.
These characteristics allow for you to focus single-mindedly on improving the quality and user experience within your app – reserving all of the hassles associated with developing, deploying, maintaining, and expanding capacity for storage servers, or monitoring server indicators to ensure availability, reliability, and durability – for AppGallery Connect.
Enhanced Auth Service
Building a user authentication system is both challenging and costly.
Auth Service makes the construction of a secure and reliable user authentication system, a hassle-free and cost-effective process. Authentication capabilities are provided as services, meaning that you can assemble all of the services you need in code for your app, with minimal O&M work.
The new and improved Auth Service supports a wider range of authentication modes, including mobile numbers, email accounts, and Apple IDs, and can be integrated into iOS apps. If you opt to integrate Auth Service before August 1st, 2020 , You will be eligible to receive the following benefits:
1. 30,000 free SMS verification messages every month
2. Dedicated technical support during service integration
3. An opportunity for broad-based exposure, as a successful case study
The free quota of SMS verification messages applies only to the mobile number + verification code authentication mode. If you are interested, please send your information in the following format to [email protected]: [Company name + App ID].
AppGallery Connect also comes with a version history management function, which allows you to query and download the app versions you had previously developed, as well as an interaction center that provides for direct communication with the platform. We think that you'll agree that AppGallery Connect 10.5 is chock-full of surprises. Just sign in to explore a pioneering new version for app development!
You can also click the link below, to learn more about Auth Service, Billing, Version history, Interaction center, and other services.
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-introduction

HUAWEI HiHealth: The Technology You Need for a Truly Customized App Experience

Since its release in 2018, HUAWEI HiHealth has seen continued growth globally. The platform provides open capabilities to the smart wearable, fitness, and health industries, allowing related partners to integrate with the HUAWEI Health app.
{
"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"
}
Globally, there are millions of devices connected to HUAWEI HiHealth. On top of that, an increasing number of developers are connecting to HUAWEI HiHealth as they seek to develop and publish apps that offer users great experiences while creating viable and sustainable business models. In July this year, we will see the release of HUAWEI HiHealth 5.0, an updated version of the platform that will offer even greater benefits for both consumers and developers alike.
Market-leading technology that empowers developers
For developers, who specialise in health apps, HUAWEI HiHealth has a range of technology features that allows them to create better, more intuitive apps. For example, the HUAWEI HiHealth offers highly accurate multi-dimensional motion detection models. This means it can process information from varying kinds of smart devices which can then be fed into these apps, providing users with a much more rounded and accurate fitness experience on their devices. Meanwhile, Huawei’s TruSleep™, a leading sleep analysis technology, is also integrated into the HUAWEI HiHealth, through which users are offered a sleep score and personalised recommendations via their wearable devices.
At the same time, the platform also features open capabilities across diverse scenarios, giving developers the flexibility and freedom required to create comprehensive apps that leverage health and fitness data that provide a great user experience.
HUAWEI HiHealth allows developers to build powerful apps
HUAWEI HiHealth provides capabilities in the form of a kit. For developers, connecting to HUAWEI HiHealth offers several further benefits as they seek to create compelling health and fitness applications. When developers connect their apps to HUAWEI HiHealth, they can obtain health and fitness data in collaboration with the user, as well as open abilities that allow them to offer consumers superior fitness and health guidance that is truly customized.
It provides atomized and scenario-based data through Java APIs, JavaScript APIs, and Cloud APIs. In addition, Gym Profile and Wellness Profile are used to connect to southbound fitness and health devices in the ecosystem to form an industry chain for information collection, secure storage and processing, as well as sharing. It not only provides client-side APIs - but also has server-side APIs through which apps can access the data warehouse.
Wide range of use cases for HUAWEI HiHealth
Developers can broadly leverage HUAWEI HiHealth in four different kinds of scenarios: fitness; health management; insurance; and more comprehensive apps that cover a broad range of uses and utilities.
For example, South African insurer Discovery uses wearable devices to help build better services for its customers, offering them rewards when they log exercise points. It has recently collaborated with Huawei, allowing its users to benefit from this rewards scheme through syncing their HUAWEI Health app with Discovery.
For fitness apps, HUAWEI HiHealth also allows the collection of accurate fitness data capabilities that improves the reliability of the analysis and the output – an example of this is Huawei working with running app Running Quotient to help runners and coaches improve, and Thai app Cal Daily is leveraging HUAWEI HiHealth to calculate consumers’ calories consumption by counting their steps.
Growing availability of health innovation driving next generation of apps
As the use of wearable devices continues to grow globally and consumers become ever more conscious about taking health and fitness seriously, apps that respond to these trends for tangible benefit will become increasingly popular. HUAWEI HiHealth gives developers the technology and innovation needed to create outstanding apps for health-conscious, fitness-fanatic users while also enabling them to create and sustain new business models.
For more information, please visit https://developer.huawei.com/consumer/en/
Notes:
The HUAWEI HiHealth Platform also offers users multiple levels of data, security and privacy protection and manages data by security level and category.
All of the data that developers are able to access via the kit is encrypted for storage.
Transmission and data acquisition must be authorized by users.
HUAWEI HiHealth is GDPR compliant and personal data is managed throughout its lifecycle in accordance with GAPP.

HUAWEI AppGallery Connect Helped DStv Now Build Secure and Smooth App Experience

More information about this, you can visit HUAWEI Developer Forum
{
"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"
}
DStv Now is an entertainment app developed by Multichoice for the African market. Users can use it on a wide range of devices encompassing mobile devices, set-top boxes (STBs), game consoles, desktop computers, and smart TVs anytime, anywhere. DStv Now is dedicated to providing secure and reliable digital video content to both individual and family users.
It partners with HUAWEI AppGallery to build more secure and smoother video playback experience for Huawei device users, enabling users to entertain themselves anytime and anywhere. On DStv Now, Huawei device users can download live TV programs for offline playback, find their favorite TV series, movies, and sports events, and choose from local and international channels covering entertainment, news, music, lifestyle, and more.
HUAWEI AppGallery can provide featured and abundant global and local apps for about 650 million Huawei device users in over 170 countries and regions. Multichoice has always been bearing privacy protection and app security in mind when designing, developing, and operating DStv Now, dedicated to providing secure services for users.
DStv Now Integrated AppGallery Connect Safety Detect
Users are concerned about app security, and therefore it is significant for developers to ensure that their apps are secure and reliable. DStv Now is a typical entertainment app released on HUAWEI AppGallery. By leveraging the powerful capabilities of AppGallery Connect Safety Detect, its security has been improved greatly.
Safety Detect is a multi-dimensional open security detection service launched by HUAWEI AppGallery Connect. It detects system integrity, app security, malicious URLs, and fake user accounts, helping quickly build security for diverse apps including entertainment, finance, game, social, and shopping apps.
According to the feedback from the DStv Now's engineering leader, both the video playback experience and security of DStv Now have been improved since the integration with AppGallery Connect Safety Detect.
Safety Detect works in the following scenarios for DStv Now:
1. A user starts watching a video.
2. A user registers a device to allow video playback on this device.
3. A user downloads video content for offline playback.
Advantages:
The engineering leader of DStv Now said that "Using Safety Detect has helped with security and to gain assurance that our clients are using our app on certified devices. This helps root out piracy and assurance that streaming and video playback is being done on devices that are approved by our content providers. It also helps with ensuring a smooth user experience as we develop our features based on certified devices without the worry of catering to user modified devices."
In addition, DStv Now also leveraged HUAWEI AppGallery Connect Advanced Analytics to better understand user requirements, optimize functions, and provide users with more diversified and refined video content and higher-quality services. As one of the top three app stores in the world, HUAWEI AppGallery has an MAU of 460 million and looks forward to working with more global developers to provide secure and high-quality services for users in over 170 countries/regions around the world.
To download DStv Now, visit AppGallery now. For more information, please visit::
https://consumer.huawei.com/en/mobileservices/appgallery/

Development Guide for Integrating the HUAWEI OneHop Kit 2

HUAWEI OneHop is a core part of Huawei's device distributed technology. It augments traditional NFC technology with additional short-distance technologies to enable efficient collaboration between smartphones and other devices with a single tap. There are a few things that you should know when integrating HUAWEI OneHop Kit:
Steps for Developing Cross-device Shortcuts
You can trigger OneHop shortcuts by doing the following:
(1) Select the device type.
(2) Select a OneHop shortcut that is supported by the device.
(3) On the device, download and integrate the OneHop development package.
(4) Check that the NFC works properly.
(5) Test and complete the certification.
Steps for Integrating the HUAWEI OneHop Kit to Printers
The diagram below shows the full integration process.
{
"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 app on the device invokes OneHop Kit to enable Wi-Fi P2P GO mode and write the Wi-Fi data into the NFC tag. During this step, the app on the printer needs to invoke the APIs to initialize and enable the OneHop service.
Users select the file they want to transfer from their phone, then tap the phone against the NFC tag on the device.
The phone obtains the Wi-Fi connection data and establishes a connection with the device.
The phone sends an image transfer notification to the OneHop Kit integrated on the device. The OneHop Kit receives the notification, then sends this notification to the app on the device to prompt the user to start transferring files.
The user accepts, and the phone sends the file to the device. The device then sends a notification to the app on the device to proceed to the next step. Once the app on the device has received the notification, it starts the printing process.
Note
To enable OneHop Kit to read and write NFC tags, the app on the device must have the corresponding driver APIs it needs to use OneHop. For details, refer to the documentation on driver_adapt.h in API Description.
There are two possible exceptions which may occur during the process. (1) The Wi-Fi-P2P connection disconnects unexpectedly during the transfer; (2) No action is taken within 60 seconds and the OneHop Kit sends a service termination value to the app on the device via a status modification callback to stop the OneHop service.
For details about API definitions, refer to the API Description.
Code Sample
This is how the OneHop demo program invokes APIs to initiate OneHop printing:
Note: For details about codes, refer to Sample Code for integrating OneHop for Linux devices. For details about API descriptions, refer to API for integrating OneHop for Linux devices
NFC Tag Handling and Data Parsing
NFC tag handling: App developers do not need to do this. NFC tags are programmed and attached by hardware vendors and distributed using hardware devices.
Data format parsing: App developers do not need to do this. The system automatically parses the OneHop data in the NFC tag and triggers the corresponding operation procedure.

[FAQs] Applying for the Health Kit Service

HMS Core Health Kit provides app developers with access to atomic data. By calling its APIs, your app will be able to read and write users' health and activity data, after obtaining users' consent.
However, before your app is officially released, that is, in the development and test phases, a maximum of 100 users may use your app. This limit can be removed by applying for verification from Health Kit. Here I have listed some problems you may encounter during the application, as well as their solutions. I hope you find them helpful.
How long will it take for my application to be reviewed?​Answer: The review takes about 15 workdays, and you will be notified of the result via SMS and email. If your application is rejected, modify your materials according to the feedback, and then submit your application again. The second review will take another 15 workdays. Please make sure you submit the correct materials for the review, to avoid any delays.
I have passed verification, but I can only query the data of a limited number of users. Why?​Answer: Due to data caching, the approved scopes will take some time to take effect. Please wait for 24 hours after you have been verified, and then try again. Make sure that you reserve enough time for the approved scopes to take effect, so that your app can be released as scheduled.
If the problem persists, refer to this Error Code.
The proof that I submitted during the application was rejected. Why?​Answer: When submitting an application for verification, fill in the App Release Checklist, and make sure that the proof you provide meets the criteria specified in the checklist.
Let's look at some common reasons why some forms of proof may be rejected.
App introduction video
Make sure that the video starts when your app is opened, so that Huawei can check whether the app name matches the one provided in the application.
Make sure that the video demonstrates how to perform basic operations, like granting the app authorizations, and accessing user data.
Make sure that the video demonstrates the privacy policy, in which the developer name must be identical to the one provided in the application.
Video demonstrating the user authorization
Make sure that the app name and app icon on the authorization screen are consistent with those provided in the application.
Make sure that the read/write scopes displayed on the authorization screen are consistent with those provided in the application. Please do not apply for scopes you are not going to use in your app.
If you are developing a mobile app, make sure that the authorization screen is properly displayed, that is, the parameter display is set to touch. For details, please refer to Authentication.
Video integrity
Make sure that the video for each check item covers all of the content specified in the checklist's acceptance criteria. A common reason for rejection is that the video does not accurately cover the end-to-end operation process. For example, for check item 3.2 Canceling authorization, the video should begin by showing how the app can access user data properly before authorization is canceled, and then proceed to canceling the authorization. If your video only depicts how authorization is canceled, your application will be rejected.
Data accuracy
Make sure that you provide screenshots showing the data consistency between your app and the Huawei Health app, for each data type. If there is no screenshot provided for a certain data type, this data type will be considered not in use in your app, and will not be approved.
Data timeliness (for REST access only)
If your app accesses Health Kit via REST, make sure that your app allows users to flexibly synchronize data manually, and demonstrate this in the video. Data that is manually synchronized to your app should be consistent with the latest data in the Huawei Health app.
If your app uses the data subscription function of Health Kit, your app should obtain the latest data from Huawei Health in real time, and this process also needs to be shown in the video.
Other documents
Provide other documents as required, for example, countries/regions where your app is to be released, list of scopes (including scopes in the application and the already approved ones), and more.
These are only some of the most common problems that you may encounter during the verification stage. You can check the App Release Checklist after selecting the Health Kit card on HUAWEI Developers for more information.
{
"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"
}
What should I do if my application was rejected because the logo used was not acceptable?​Answer: Check the HUAWEI Health Guideline and ensure your app complies with these guidelines when using the Huawei Health logo.
Please stay tuned for the latest HUAWEI Developers news and download the latest resources.
As an individual developer, can I apply for formal scopes?​Answer: Individual developers cannot apply for formal scopes by applying for verification. A maximum of 100 users can be invited to use your app. This can only be removed by applying for a new HUAWEI ID, registering as an enterprise developer, and then applying for the Health Kit service.
Please note that advanced user data (such as heart rate, sleep, blood pressure, blood glucose, and SpO2 data) is not open to individual developers. To access advanced user data, create a HUAWEI ID and register as an enterprise developer before applying for access to Health Kit.
References​HMS Core Health Kit
Developer Guide
FAQs About Accessing Health Kit

Categories

Resources