Unity AmazonIAPManager only gets callbacks if it is in the scene at load
Hi, If I have a GameObject with the AmazonIAPManager component on it in the scene at load time everything works fine (as in the example). However, if I instantiate a GameObject with the AmazonIAPManager component on it during my initialization process then the component does not receive any of the callbacks. I can see in the LogCat that the calls are being made and results are returning, however the AmazonIAPManager does not appear to have been registered as a listener for these callbacks. What is the required order of events to ensure the AmazonIAPManager is registered as a listener? We have a setup where all of our persistent game services are instantiated very early in the loading processes and I would like the AmazonIAPManager to follow that pattern. As a request, controlled registration as in the native Android setup would be preferred. Thank you. Best, Todd
There is an order, to register the PurchaseObserver in unity , you have to call AmazonIAP.initiateDataRequest through the IAP Plug-In. Even for purchasing : First, you query the IAP catalog to make sure the SKUs you wish to purchase are available. This is done by invoking the AmazonIAP.initiateItemDataRequest() method.