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 43 forks source link

In-apps Unity 2020.3 (LTS) #151

Closed Frizord closed 3 years ago

Frizord commented 3 years ago

photo_2021-06-15 12 41 44 photo_2021-06-15 12 41 49 photo_2021-06-14 18 11 31

Hello. I am integrate an in-app service for my game, completed the steps with filling in the information on the account, set up bundles, added bundles to Unity, added a sha-265 key. When I try to make a purchase on my phone, I get an error: Specified: "bundleID" could not be found in retrieved product list! After initialization the service in the logs "success". Also the project without unity purchasing and UDP. Any ideas? Thanks!

sametguzeldev commented 3 years ago

Hello there. Have you added your products via editor? You can reference the picture below. Capture

Frizord commented 3 years ago

Hello! Yes, I am added products at editor photo_2021-06-14 18 13 01

sametguzeldev commented 3 years ago

Hmmm looks okay yes. You also have these products on App Gallery Connect right ?

Frizord commented 3 years ago

Yes. photo_2021-06-15 14 28 40

sametguzeldev commented 3 years ago

Okay, everything seems fine. Can you provide me logs from the device so we can check this part on the image? It should get more products from AGC.

Also you replaced the Assets/StreamingAssets/agconnect-services.json file with your own project's json file right ?

image

Frizord commented 3 years ago

log.log Also you replaced the Assets/StreamingAssets/agconnect-services.json file with your own project's json file right ? Yes, Im download the .json file from console at website.

sametguzeldev commented 3 years ago

Okay if you can provide some logs that I can look into, would be wonderful.

Frizord commented 3 years ago

Im edit my message upper, sorry.

sametguzeldev commented 3 years ago

That log does not contain anything about HMSPlugin unfortunately 😢 But I suggest you to use Android Logcat package provided by Unity. Go to PackageManager. Then Unity Registry. Select AndroidLogcat and install. Untitled

After that, Press Alt + 6 or go to Window > Analysis > Android Logcat. Untitled2

In this editor, select the device that you plugged into your PC(1). then select your unity application(2). Right click to editor and press Select All or press Ctrl + A on your keyboard. Again right click with your mouse and press Save Selection. Upload your saved log here again 😄 Untitled3

Frizord commented 3 years ago

Found an error, the types of purchases do not match in Unity and in the console :( Thanks a lot!!!

sametguzeldev commented 3 years ago

Ahaha yes I did not check that actually :D your product types does not match 😄

image

Frizord commented 3 years ago

Thanks for help! Bye!)