huawei-developers

How to get access token for Huawei Api for sending push to device?

£可爱£侵袭症+ 提交于 2021-02-11 14:23:10
问题 I need to send push to Huawei device, which have app with Huawei Push Kit integrated. To do this I need accessToken. How to receive it? I've already create developer account and create project for app. 回答1: You need to do POST request to https://oauth-login.cloud.huawei.com/oauth2/v3/token Add header Content-Type: application/x-www-form-urlencoded Add params: grant_type=client_credentials client_id=CLIENT_ID_FROM_DEV_CONSOLE client_secret=CLIENT_SECRET_FROM_DEV_CONSOLE Request using curl:

How to get access token for Huawei Api for sending push to device?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 14:20:29
问题 I need to send push to Huawei device, which have app with Huawei Push Kit integrated. To do this I need accessToken. How to receive it? I've already create developer account and create project for app. 回答1: You need to do POST request to https://oauth-login.cloud.huawei.com/oauth2/v3/token Add header Content-Type: application/x-www-form-urlencoded Add params: grant_type=client_credentials client_id=CLIENT_ID_FROM_DEV_CONSOLE client_secret=CLIENT_SECRET_FROM_DEV_CONSOLE Request using curl:

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

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

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

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

[亡魂溺海] 提交于 2020-11-29 17:55:51
问题 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