huawei-mobile-services

How to check Google Mobile Services enable in device or not?

无人久伴 提交于 2021-02-11 04:26:41
问题 I have to check if google services are active on the device. How can I check it? Looking just play services is enough? I need this check for Huawei services. 回答1: final int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if (status != ConnectionResult.SUCCESS) { Log.e(TAG, GooglePlayServicesUtil.getErrorString(status)); return false; } else { Log.i(TAG, GooglePlayServicesUtil.getErrorString(status)); return true; } 回答2: I think this code will help you final int status =

How to publish an apk in AppGallery without creating a copy of app with different package

吃可爱长大的小学妹 提交于 2021-02-10 15:40:20
问题 I'm trying to publish an app on AppGallery, but when I enter my package name for new application in console project, it says that package has already been taken. The app is published on Play Store and if your search for it in AppGallery it will find it, but the AppGallery page says that the app is "not yet available". So I assume there should be a way to publish an apk in AppGallery without creating a copy of app with different package which might break all other services that I currently use

Is Huawei HMS tolerated on Google Play Store?

本秂侑毒 提交于 2021-02-07 19:56:27
问题 I have an app with the usual Google ad and in-app-payment stuff. It's accepted into the Play Store all right. Now I'd like to make it support both GMS and HMS at the same time (based on the availability of the appropriate services, the app can decide which platform to use). The app, with the Huawei functionality built in, works just fine while testing on my own devices. However, as soon as Huawei's libraries are bundled with the app, the Play Store Console simply refuses it. No error message,

How to send push to Huawei device using Huawei Push Kit API?

别等时光非礼了梦想. 提交于 2021-02-05 09:00:21
问题 I want to send push from server to Huawei device with Huawei Push Kit integrated. I have deviceToken from device, but when I try so send push message using API I receive error: 80300002: No permission to send message to these tmIDs 回答1: This error can be caused be wrong AppId , used in API url path. AppId can be found in console so: App Gallery Connect -> My projects -> YOUR_PROJECT -> Project settings . On this screen AppId is Application ID , which can be found above SHA-256 of your signing

How to send push to Huawei device using Huawei Push Kit API?

天涯浪子 提交于 2021-02-05 08:59:45
问题 I want to send push from server to Huawei device with Huawei Push Kit integrated. I have deviceToken from device, but when I try so send push message using API I receive error: 80300002: No permission to send message to these tmIDs 回答1: This error can be caused be wrong AppId , used in API url path. AppId can be found in console so: App Gallery Connect -> My projects -> YOUR_PROJECT -> Project settings . On this screen AppId is Application ID , which can be found above SHA-256 of your signing

Is it possible to disable WiFi throttling on Android(Xamarin.Forms) if the device does not have in Developer Menu this option(Huawei)?

China☆狼群 提交于 2021-01-29 06:05:17
问题 I'm working on an application in Xamarin.Forms and I try to use nearby Wi-Fi signals for indoor tracking. But it is not possible because of Android Wi-Fi Throttling. How can I disable it, event my Huawei P20 Pro does not have this option in Developer Menu? Can be another options to scan efficiently Wi-Fi signals on Android or is not possible as long as Wi-Fi Throttling can't be controlled? 回答1: According to wifi-scan-throttling docs, Android 10 has the Wi-Fi Throttling option in Developer

Huawei p8 or p8 Lite has problem with Keystore Encryption

断了今生、忘了曾经 提交于 2021-01-28 08:59:43
问题 Recently I migrated my application (date encryption) from using keypairgeneratorspec to use keyGenParameterSpec Api for devices API level >= 23 ... after that my app works fine on all devices except huawei p8 and p8 lite when user launches my app makes his phone restarts ... I confused whats the the reason. I do not have access to this huawei models for debugging and I tried to test my app with firebase testlab ... finally I can not figure out what happened on these models. please help... 回答1

Launching Huawei Petal Maps Directions via Intent on Android

≯℡__Kan透↙ 提交于 2021-01-28 04:15:57
问题 Is it possible to launch Huawei Petal Maps with navigation from point A to point B using intent just like in google maps? If yes, how? 回答1: Yes, you can use an intent to launch the Petal Map app, and then use navigation functions in the app. Deep link example: mapapp://navigation?saddr=xxx&daddr=xxx&language=xx&type=xxx mapapp://navigation?saddr=home&daddr=company&language=en&type=drive mapapp://navigation?type=exit To use this function, you need to set uriString to the following: "mapapp:/

What google services are banned in Harmony OS (here is a list that I have used in my android app.)

偶尔善良 提交于 2021-01-15 06:35:30
问题 I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform. Here is a list of google services that I have used. Please help me to distinguish what google services would I need to override and recode for Harmony OS . com.google.android.material com.google.firebase com.google.android.gms:play-services-auth com.google.android.gms:play-services-maps com.google.android.gms:play-services-location com.google

Migration from Google Play Store to Huawei Store. Any changes in code?

自古美人都是妖i 提交于 2020-11-29 18:11:06
问题 I have an application live in Google Play Store. I am planning to publish it also in Huawei Store. Apart from re-building the app with the Huawei SDK and the basic instructed steps (Add into the project agconnect-services.json etc..), is there something else that needs to be changed at code level ? Are all APIs working ? Specially those related to in-app purchases ? Thanks 回答1: First, please check out what GMS Kit you are using, and I could provide you corresponding HMS Kits. You can refer to