Francesco
Francesco

Reputation: 85

iOS In App Purchases restore transaction not working properly with Milkman Games ANE for Adobe AIR

I am experiencing the following problems with Milkman Games in-app-purchases ANE dor Adobe AIR:

PROBLEM 1

  1. StoreKit is created and correctly returns all the product IDs via StoreKit.storeKit.loadProductDetails()
  2. I purchase item A, the item is correctly purchased
  3. I purchase item B, the item is correctly purchased
  4. I uninstall and re-install the app
  5. I restore transactions via StoreKit.storeKit.restoreTransactions()
  6. Only item B is restored ( onPurchaseSuccess() is only triggered once for item B)

EXPECTED BEHAVIOUR:

I would expect that restoreTransactions() would trigger onPurchaseSuccess() for each of the items previously restored.

PROBLEM 2

  1. I close the app
  2. When I restart the app, onPurchaseSuccess() for product B is fired without any of the app code calling it.

Is StoreKit attempting to restore transactions by default everytime StoreKit is created? (i.e. StoreKit.create(); )

Testing device: iPad2, iPhone4
Operating System: iOS 7 and iOS 6
Compiling for: AIR 3.8
IDE: FlashDevelop

Type of item purchased: all items tested are non-consumable

Did anyone ever experienced such a behaviour with iOS in-app-purchases in an AIR mobile app? Any ideas or pointer in the right direction are appreciated, thanks!

Upvotes: 0

Views: 847

Answers (1)

Francesco
Francesco

Reputation: 85

An updated version (v. 2.0.1) of this ANE released today by Milkman Games solved the problems I described above.

Upvotes: 0

Related Questions