Create empty project with ony one plug-in: UnityIAP
Google Play store test application works fine.
Amazon Store.
Unity console shows: “Unavailable product” for each product.
Logcat shows nothing interesting (Unity tag):
“onGetUserIdResponse…”
“Requesting 1 groups of skus”
“onItemDataResponse…”
“onPurchaseUpdatesRespose…”
“Unavailable product…”
Anyone manage to work Amazon with UnityIAP?
I check and re-check everything 5 times or more… No ideas and nothing helps.
Almost no information at amazon or Unity forum about bags - everything working (except for me))))
I was encouraging you to review the documentation and debug. We haven’t tested on Amazon for some time. You can’t initialize IAP in the Editor, you can only use the fake store. You need to install on a device.
Were you able to figure out this issue? We are getting “Unavailable product” when initialization happens even though we have the proper items created in the Amazon Appstore dashboard.
Yes we tested recently and it worked perfectly for me, first time. I used the Sample IAP Project v2 and followed these steps Unity - Manual: Configuration for the Amazon Appstore Please describe your steps to reproduce.
IAP would not be expected to work if it doesn’t compile. Purchasing is not in UnityEditor, it’s in UnityEngine. You switch the target platform from the menu option in the Unity Editor, not in code. Please compare to the Sample IAP Project v2 here https://discussions.unity.com/t/700293/3
Yes of course I understand IAP would not work if we can’t compile the APK, since we wouldn’t even have an APK to run on the device. But since it was not working via using the switch the target platform menu option. We followed the instructions here:
Why wasn’t it working when you used the menu? Sorry I don’t follow. Your error is separate from “switching platforms”. What Amazon device are you testing on?
“Why wasn’t it working when you used the menu?” When we built the APK but only switching the target via the menu, we would get the “Unavailable product” on our Amazon Kindle Fire when we tried to use the IAP functionality. So I thought maybe we need to switch the target via the code as in the documentation.
It appears the code in the documentation is obsolete. Because the same error also happens when I use it in your sample project. It would be nice if it worked so that we do not need to build a separate APK for Amazon and Google Play.
Assets/Scripts/MyIAPManager.cs(38,9): error CS0234: The type or namespace name ‘Purchasing’ does not exist in the namespace ‘UnityEditor’ (are you missing an assembly reference?)
Yes, your issue is separate from switching targets, just use the menu option. I would expect the behavior to be the same if you have not properly published your app.