Skip to content

Companion App using HUAWEI Health Kit, Huawei WearEngine, Kotlin DSL with buildSrc, Android Achitecture Components, Dagger2 and UnitTests that interacts with a Harmony OS Watch.

Notifications You must be signed in to change notification settings

ferPrieto/HMS-Wearable-Example

Repository files navigation

HMS-Wearable-Example 📱 ♥️

A companion Android app that interacts with a Huawei SmartWatch(HarmonyOS).

This is the link to the HarmonyOS project (watch app) which interacts with this Android project.

Setup

  1. Credentials

It's necessary to add the specific values for the next entries in the local.properties:

  • keyAlias=XXX
  • keyPassword=YYY
  • storePassword=ZZZ
  • peerPkgName="com.your.package"
  • peerFingerprint="com.your.package_FINGER_PRINT="

More info about how to get the fingerPrint value here 👉 fingerprint

  1. AGC JSON File

agconnect-services.json is needed too. More info about how to get this file here 👉 agconnect-services.json

  1. Apply for Health Kit

In order to be able to communicate with Huawei Health and get any available tracked data, it's necessary to apply from the Huawei Developer console, more info here: healthkit-application

  1. Apply for Wear Engine

In order to be able to communicate with a Huawei Smart Watch, it will be necessary to apply from the Huawei Developer console, more info here: wearengine-application

Demo

Health with Ping(to wake up the watch app)
Messaging: photo sending (from phone to watch) and text message (from watch to phone)
Video Player: video control from the watch

License

Copyright 2021 Fernando Prieto Moyano

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Companion App using HUAWEI Health Kit, Huawei WearEngine, Kotlin DSL with buildSrc, Android Achitecture Components, Dagger2 and UnitTests that interacts with a Harmony OS Watch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages