robovm-ios-bindings icon indicating copy to clipboard operation
robovm-ios-bindings copied to clipboard

in-app purchases IOS

Open AceEX7 opened this issue 9 years ago • 2 comments

apple would not accept my app since the in app puchase does not work for some devices. during my tests the in app purchase worked but on some devices the in app purchase dialog won't even pop up. the devices on which the IAP does not work according to apple are: Ipad Air 2 and Iphone 6 running on iOS 9.0.2.. i checked my app on an iphone 6 with iOS 8.4 and it doesn't work there as well.

any solutions, suggestions on how to resolve this issue?

AceEX7 avatar Nov 08 '15 11:11 AceEX7

Hi, can you show some code? Could it be that there is threading involved? The IAP stuff should always be called on the main thread (NSOperationQueue.getMainQueue().addOperation(...)). Even if you call these things on the LibGDX render thread, it may not always work :)

BlueRiverInteractive avatar Nov 08 '15 12:11 BlueRiverInteractive

thanks for the quick respone! i'm using the following method to make an IAP from the IOSLauncher Class

public void purchaseProduct(String product) { if(iapManager.canMakePayments() && appStoreProducts!=null) { iapManager.purchaseProduct(appStoreProducts.get(product)); } }

how can i insert this code into the main thread?

thanks!

AceEX7 avatar Nov 09 '15 09:11 AceEX7