Skip to content

careful7j/HMSExamples

Repository files navigation

Huawei Mobile Services (HMS) Examples

en ru

These examples cover ALL commonly used sdks (December 2023 latest) of Huawei Mobile Services 6.12.2.302. Proved to compile for android 13 and are limited to minimal API showcase - no extra libraries, no fancy architecture.

Account Kit

  • sign in without Id verification
  • sign in via Id Token
  • sign in via Authorization Code (OAuth 2.0)
  • code from SMS consent receiver dialog

Official Documentation | API Reference

Ads Kit

  • ads banner, interstitial banner, rewarded ads, instream video ads, native banner ads, splash screens ads
  • ads consent dialog, privacy policy feature

Official Documentation | API Reference

Analytics Kit & Crash Kit

  • analytics sdk launch, events collecting, user sessions
  • crash event collecting

Official Documentation | API Reference

FIDO kit

  • fingerprint authorization
  • face recognition authorization

Official Documentation | API Reference

IAP Kit

  • purchase and consume consumable products
  • purchase non-consumable products and subscriptions
  • view purchasement history, obtained products

Telegram bot to convert your Google IAP products to HUAWEI IAP products

Official Documentation | API Reference

Location Kit

  • get user location, last location, periodic location
  • geofence (enter/exit geo zone) is available only on this list of devices
  • user activity recognition (like walking/running/driving)

Official Documentation | API Reference

Map Kit

  • standard huawei maps (petal maps), map styling, map fragment
  • markers and clusterization, camera animations
  • map overlay, heatmap, lite map (high performance picture mode)

Official Documentation | API Reference

ML kit

  • bank cards recognition
  • human voice recognition
  • text-to-speech feature

Official Documentation | API Reference

Push Kit

  • receive data/notification push messages
  • subscribe topics, audience, delete token, multi-sender receiver

Official Documentation | API Reference

Safety Detect Kit

  • check system integrity
  • check if known malicious apps installed on a device
  • check url of a website for malicious/virus/phishing content
  • check user is a robot (captcha)

Official Documentation | API Reference

Scan Kit

  • default mode scan QR/Bar/other codes
  • customized UI mode scan QR/Bar/other code
  • generate QR/Bar/other code

Official Documentation | API Reference

Test results:

Screenshot 2023-06-13 at 05 15 02

Test devices:

  • HUAWEI nova 8, Android 10, EMUI 12.0.0 (build 12.0.0.183 June 2023)
  • Redmi Note 11, Android 13, MIUI Global (build 14.0.2.0 May 2023)
  • Samsung A33, Android 13, One UI 5.1 (build 5.10.136 May 2023)

Useful links:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages