question

gd-studio avatar image
gd-studio asked

Using test air apk works, but not event listeners triggered after purchase.

I was using Adobe AIR 3.8beta and the amzon IAP ane, something occured to me . Using test air apk works, but not event listeners triggered after purchase successfull. for the code: AmazonPurchase.amazonPurchase.addEventListener(AmazonPurchaseEvent.SDK_AVAILABLE, onSdkAvailable); protected function onSdkAvailable(event:AmazonPurchaseEvent):void { Log.traced("onSdkAvailable", "is in test mode:", event.isSandboxMode); } I can get the log : "onSdkAvailable is in test mode: true " but for the code : AmazonPurchase.amazonPurchase.addEventListener(AmazonPurchaseEvent.PURCHASE_SUCCEEDED, onPurchaseSucceeded); I can't get the log in the function onPurchaseSucceeded, even App already told me I purchase successfully. Anyone know what happend? Thanks in advance!
iap
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gd-studio avatar image
gd-studio answered
Sorry., I made a misstake at the app xml config, error solved, thanks.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Gd_studio, Thank you for posting. It's a common mistake happens with most of developers. Actually app xml has to be configured properly in order to get the ResponseReceiver registration done. Any way. Good to know that you have solved the issue. Thanks.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.