EvilMindDevs / hms-unity-plugin

The HMS Unity Plugin makes it easy to include Huawei Mobile Services into Unity-based games. Authentication, in-app purchases, push alerts, ads, and interaction with gaming services are just a few of the basic capabilities that this formidable tool makes available to your applications.
https://evilminddevs.gitbook.io/hms-unity-plugin/
311 stars 44 forks source link

ERROR on Consumable ObtainInfo #55

Closed hexiy closed 4 years ago

hexiy commented 4 years ago

Hello there, i can't seem to get IAP product info. I'm using Release v1.1.2 on Unity 2019.4.1f1. Login succeeds. Private key is set on huawei's side. I have placed agconnect-services.json into Assets/Huawei folder. i'm building with build number 1 above the store one, In Unity Project Settings at the end, i only have checked "Custom Main Manifest". Built with IL2CPP, .Net4 or .net standard 2.0(no difference in error). I have also created new project and imported the hms plugin, i have the same problem. We checked the product list on huawei dashboard, IAP is enabled too.

Is there any way to get more helpful error so we know what's the cause of our problem? Thanks

image

volvoxgames commented 4 years ago

Still continue your issue? I faced same trouble at my project 👎

hexiy commented 4 years ago

Still continue your issue? I faced same trouble at my project 👎

Yes, no matter in what Unity version i import the plugin, IAP doesn't work. Seems strange that login works but i cant access products. If plugin developer doesn't respond, we'll have to contact AppGallery support and try to resolve the issue.

hexiy commented 4 years ago

Update Unity project still doesn't work, but obtaining product info from huawei's example android app (https://developer.huawei.com/consumer/en/codelab/HMSInAppPurchase/index.html#8) works well. Update 2 I'm dealing with other problems now, BUT i can now obtain product info in our game. All i had to do was build the project with "Export project" checkbox checked, open it in Android Studio, add agconnect.json to the "launcher" project and build.

volvoxgames commented 4 years ago

Update Unity project still doesn't work, but obtaining product info from huawei's example android app (https://developer.huawei.com/consumer/en/codelab/HMSInAppPurchase/index.html#8) works well. Update 2 I'm dealing with other problems now, BUT i can now obtain product info in our game. All i had to do was build the project with "Export project" checkbox checked, open it in Android Studio, add agconnect.json to the "launcher" project and build.

Did you add your json file or add example project's json file?

hexiy commented 4 years ago

Update Unity project still doesn't work, but obtaining product info from huawei's example android app (https://developer.huawei.com/consumer/en/codelab/HMSInAppPurchase/index.html#8) works well. Update 2 I'm dealing with other problems now, BUT i can now obtain product info in our game. All i had to do was build the project with "Export project" checkbox checked, open it in Android Studio, add agconnect.json to the "launcher" project and build.

Did you add your json file or add example project's json file?

I added my own agconnect.json file i downloaded from the AppGallery Connect Project page.

luckynamal commented 4 years ago

Hello there, i can't seem to get IAP product info. I'm using Release v1.1.2 on Unity 2019.4.1f1. Login succeeds. Private key is set on huawei's side. I have placed agconnect-services.json into Assets/Huawei folder. i'm building with build number 1 above the store one, In Unity Project Settings at the end, i only have checked "Custom Main Manifest". Built with IL2CPP, .Net4 or .net standard 2.0(no difference in error). I have also created new project and imported the hms plugin, i have the same problem. We checked the product list on huawei dashboard, IAP is enabled too. Is there any way to get more helpful error so we know what's the cause of our problem? Thanks Hello Bro. bro I am trying to Login but I don't know why login is creating error. I followed the official toturial by the way. I think there is problem from AppGallary Console.

luckynamal commented 4 years ago

Hi There. error1 error2 error3

I am facing the login issue. can anyone help? I followed the official tutorial by the way.

hexiy commented 4 years ago

Hi There.

I am facing the login issue. can anyone help? I followed the official tutorial by the way.

Try using the 2019 version. When i used the 2018 version of the plugin, i couldn't login either

gmYusuf commented 3 years ago

Hi There. error1 error2 error3

I am facing the login issue. can anyone help? I followed the official tutorial by the way.

Can you share AccountSignIn.cs codes?