I am experiencing the following problems with Milkman Games in-app-purchases ANE dor Adobe AIR:
PROBLEM 1
0) StoreKit is created and correctly returns all the product IDs via StoreKit.storeKit.loadProductDetails()
1) I purchase item A, the item is correctly purchased
2) I purchase item B, the item is correctly purchased
3) I uninstall and re-install the app
4) I restore transactions via StoreKit.storeKit.restoreTransactions()
5) 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
6) I close the app
7) 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
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!