Questions tagged [huawei-developers]

Questions related to huawei-developers, for example: Safety Detect, AppGallery, Huawei AR, Huawei HiAi etc.

625 questions
2
votes
2 answers

HMS getToken returns null if app is installed from APPGALLERY

I build an app. I am using the HMS Push kit for notifications. It is working fine if I build apk and install it on a device directly. But if I install this app from Huawei AppGallery, it returns a null token to me. To get Token I wrote this code: …
2
votes
1 answer

getCurrentLocation in Huawei (HMS Location)

In android there are two separate functions to get Location: getLastLocation() getCurrentLocation() getLastLocation returns the last known location of the device where, getCurrentLocation returns current location of the device by finding latest…
2
votes
1 answer

Huawei ThemeStudio - font change

I recently joined the Huawei developer community and would like to start developing Huawei themes for mobile phones. I downloaded the ThemeStudio app and everything makes sense to me, except for one thing. Why is it not possible to change the font?…
nub
  • 41
  • 2
2
votes
2 answers

What is the alternative packages for R(android) to HarmonyOs and Displaymetrics to harmonyOS and some constants?

what should I do with the constants which are causing some problem.? import static android.net.ConnectivityManager.TYPE_BLUETOOTH; import static android.net.ConnectivityManager.TYPE_DUMMY; import static…
2
votes
1 answer

AccountManager return huawei account even if account have been signed out

Android Version: 7 Huawei devices AccountManager still returns account information after the user has been logged off. It should not return account information after it has been logged off. accountManager.getAccountsByType("com.huawei.hwid") is…
2
votes
2 answers

How to receive data from Huawei Health App?

I already got Health Kit Authorization, but whenever i run the sign in method i keep getting error code 8002 which is not documented, and when i run authorizations or whenever i try to read any data with health kit for example heart rate i keep…
2
votes
2 answers

huawei devices are not loading the google maps inside my app

I am trying to upload my app to the huawei's app gallery but every time I upload it for a review they send a vid where the map inside the app is not loading, At first i thought the issue was that they might be testing it using a device that doesn't…
2
votes
1 answer

Can the AccessToken Be Obtained by Using the authAccount.getAccessToken() Method After the Silent Login Is Successful

I am integrating Huawei account kit. I want to know whether the AccessToken can be obtained through authAccount by using the following code: private void silentSignIn() { Task task = mAuthManager.silentSignIn(); …
2
votes
1 answer

Huawei.Hmf.tasks. Create new task

I'm trying using huawei tasks and faced a problem. How to create task that calls a specific method, that returns "void"? For example in c# i can: public static Task MyTask() { return Task.Factory.StartNew(() => { …
2
votes
2 answers

How to find the alternative class/method for harmonyOS in androidOs?

I am a fresher who works on HarmonyOS where we have to map android imports to respected to HarmonyOs using an excel sheet, which consists of alternative imports but some are missing in that Excel. where can I find all the alternative methods?
2
votes
1 answer

BroadcastReceiver onReceive doesn't get called on Huawei Device

We have a requirement to show an acknoldgement screen after user share some texts on Messaging apps such as Whatsapp, Telegram, SMS etc.. We have been using the react-native-share library for this and it works fine on non Huawei devices. However,…
2
votes
1 answer

HMS Map toolkit - issue rendering a Map

Trying to add HMS maps to my app (GMS works right) I faced problem with rendering map. The map fragmet load the map only for the visible area, moving the map, or zooming out it's visible only the grey grid. (I try to test it with activity and code…
2
votes
1 answer

Huawei ML Kit Text to Speech Conversion Error

I m working on the Translator application where I need to speak out what user has translated. By following the Huawei Text to Speech Doc I m getting the Error. onError: MLTtsError{errorId=11301, errorMsg='The speaker is not supported. ',…
2
votes
1 answer

How to judge the remoteMessage type

I want to know the remoteMessage from HmsMessageService is a message data with or without notification, how to judge the difference between them? public class HmsService extends HmsMessageService { @Override public void…
2
votes
1 answer

Huawei Automatic Speech Recognition Limitation - Service Unavailable Error on PICKUP UI

I'm working on the Translator application for Huawei App Gallery and I come to know through Huawei-Doc that Automatic Speech Recognition is currently supporting 11 language Automatic speech recognition (ASR) can recognize speech not longer than 60s…