Questions tagged [huawei-mobile-services]

Use this tag for programming questions relating to HMS Core. HMS Core is an assortment of open device and cloud capabilities provided by Huawei Mobile Services (HMS). Noteworthy capabilities include: Account Kit, In-App Purchases (IAP), Push Kit, Game Service, Location Kit, Map Kit, Ads Kit, and ML Kit.

HMS Core is a collection of basic mobile service end-to-cloud capabilities, dedicated to helping developers build high-quality apps with minimal hassle.

HMS Core Kits

App Services

  1. Account Kit ()
  2. Ads Kit()
  3. Analytics Kit ()
  4. App Linking
  5. Awareness Kit
  6. Drive Kit
  7. Dynamic Tag Manager
  8. Game Service
  9. Health Kit
  10. Identity Kit
  11. In-App Purchases ()
  12. Location Kit()
  13. Map Kit()
  14. Push Kit ()
  15. Quick App
  16. Scan Kit
  17. Site Kit
  18. Wallet Kit

Graphics

  1. Accelerate Kit
  2. AR Engine
  3. Computer Graphics Kit
  4. GameTurbo Engine
  5. Scene Kit

Media

  1. Audio Engine
  2. Audio Kit
  3. Camera Engine
  4. Image Kit
  5. Panorama Kit
  6. Video Kit
  7. WisePlay DRM

AI

  1. ML Kit()
  2. HUAWEI HiAI Foundation
  3. HUAWEI HiAI Engine
  4. HUAWEI HiAI Service

Smart Device

  1. CaaS Engine
  2. Cast Engine
  3. DeviceVirtualization Engine
  4. OneHop Engine
  5. Share Engine

Security

  1. Fast Identity Online(FIDO)
  2. Safety Detect
  3. LocalAuthentication Engine
  4. DataSecurity Engine

System

  1. hQUIC Kit
  2. Nearby Service
  3. Wireless Kit

Resources

Join to keep up with latest news and activities of HMS Core. Community where you can exchange insights, discuss puzzles and share experience with developers.

Get the latest open-source code examples to help you easily integrate HMS Core capabilities. Participate in open source project, contribute valuable suggestions about code example improvement to benefit more developers

The HUAWEI Codelabs provide a technical guidance, tutorial and hands-on coding experience. For example, enabling HUAWEI Account Kit, enabling HUAWEI Map Kit, etc.

The video courses help introduce the features, usage scenarios, and benefits corresponding to HMS Core Kits, as well as explaining how best to integrate and implement them.

  • Technical Support:

Europe: developereu@huawei.com

Asia-Pacific region: developerapac@huawei.com

Latin America: developerla@huawei.com

Middle East and North Africa: developermea@huawei.com

South Asia: developersa@huawei.com

1390 questions
7
votes
3 answers

Is it possible to identify from the user-agent if a Huawei device is NOT supporting google services?

I would like to check in my Google Analytics how big a proportion of my user base is using Huawei devices which are no longer using google services but instead using App Gallery etc. I was wondering if I could e.g. look for specific OS versions in…
7
votes
3 answers

HmsMessageService onMessageReceived not called

I implemented Huawei Push Kit. onNewToken is called after app started. I want to use onMessageReceived. When I send push notification to client, push notification appears on android but onMessageReceived is not triggered. I added below codes to…
7
votes
2 answers

Huawei HMS initialize without Json file

Is it possible to initialize HMS without a agconnect-services.json and provide the keys at runtime? Using a similar service (Fcm) we can initialize an app: val builder = FirebaseOptions.Builder() .setApiKey(apiKey) …
Mahdi-Malv
  • 16,677
  • 10
  • 70
  • 117
7
votes
2 answers

Programmatically check if android device has Google Play?

Currently there are some devices that doesn't have Google Play (Huawei Devices), is there a way for me to check programmatically if the device doesn't have one? I wanted to use the in-app-update feature:…
Mike
  • 1,313
  • 12
  • 21
7
votes
2 answers

HMS Map Kit - Clustering

I want to migrate Google Maps functionality to HMS. Most of the parts were easily migrated to Huawei, but I have functionality of Clustering and I'm using ClusterItem and ClusterManager with DefaultClusterRenderer for my GoogleMap to show clusters…
martin1337
  • 2,384
  • 6
  • 38
  • 85
7
votes
1 answer

Different module file by flavor

I'm trying to implement play services and huawei services in the same app, but want to be able to configure which one to use by flavor. Each flavor uses it's own applicationIdSuffix. So for each different flavor, huawei plugin fails and I cannot…
SMGhost
  • 3,867
  • 6
  • 38
  • 68
7
votes
0 answers

Attempt to invoke interface method 'int android.security.IKeystoreService.del(java.lang.String, int)' on a null object reference

I'm facing some issue in KeyStore implementation in only Huawei devices (Specially in Huawei Mate 9) other device working perfectly. Error Log : Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'int…
Mansukh Ahir
  • 3,373
  • 5
  • 40
  • 66
7
votes
0 answers

Android - Audio Manager setSpeakerphoneOn - doesn't work on Huawei

Hy everybody, I have a problem with Audio Manager on Huawei phones. I have an app, which can route the voice of calls to earpiece or loudspeaker from bluetooth headset during the call. It works fine on all of the phones except Huawei phones. I…
opix
  • 71
  • 4
7
votes
2 answers

How do I set up udev rules for debugging a physical android device with Android Studio?

In the past I've never had to set this up, but I updated Android Studio to version 2.3.1 today and got this error when clicking debug: 05/03 17:19:19: Launching app $ adb push app-debug.apk {path on my…
PoisonRain
  • 323
  • 1
  • 7
  • 14
7
votes
1 answer

My Huawei kills my wakelock android app

I try to develop app for Android which uses phone's accelerometer. It works everywhere except on Huawei's phone (testing on P9). I checked option "keep running with black screen" and protect application with battery saver (battery's option). I can't…
Leo
  • 81
  • 7
6
votes
2 answers

Huawei Map not loading tiles

I have followed the documentation here and here (which are pretty straight forward), but the map view does not load any tiles. I use HMS Toolkit, and the Configuration Wizard results in success. I also have set my api key, using this line in both my…
6
votes
3 answers

Ad failed to load with error code 0(internal Error) - Huawei Ads Implementation

I m getting the above error continuously in demo Application. I have HMS core Version 5.0.0.329(Initial Version). My internet connection is stable. I have created test application on app gallery that has been approved but still same error. No luck…
6
votes
1 answer

Detecting if application is installed from Huawei AppGallery

I would like to detect the app installation source. We can use two approaches on Android to detect the installation source: PackageManager#getInstallerPackageName(String) or PackageManager#getInstallSourceInfo(String). Both of those calls will…
6
votes
2 answers

Class "AGConnectServicesConfig" is deprecated in com.huawei.hms:push:5.3.0.301

When I updated the pushSDK to the version "5.3.0.301", I found AGConnectServicesConfig was deprecated. I want to know what is the substitute for it. How can I get app_id in the new version? I used to get app_id like this: String appId =…
6
votes
1 answer

Is there an alternative for Huawei that works like ChromeCustomTabs or SafariViewController?

ChromeCustomTabs uses Chrome, SafariViewController uses Safari. Is there an alternative for Huawei (Huawei Browser). Can I use Huawei Browser as an in-app browser?