Closed MaxGyver83 closed 9 years ago
I think my problem was that I was creating IOSResolver
in IOSLauncher.didFinishLaunching
and I forgot to call super.didFinishLaunching
and that's why Gdx.app
was not yet set. So Gdx.app.debug
or Gdx.app.log
didn't work.
I'm trying to use gdx-pay 0.5.0 for Android and iOS using the platform resolvers from the wiki. I have no problems with Android. But in iOS, I always get this error when trying to buy something:
[info] ERROR: gdx-pay: requestPurchase(): purchaseManager == null
That's not surprising because the purchaseManager is already null when I call the "initializeIAP" method. There I get"gdx-pay: initializeIAP(): purchaseManager == null => call PurchaseSystem.hasManager()"
. hasManager() (=false) calls getManager() and getManager() calls resolve(). So resolve() should give me some information on why there is no purchaseManager. But I don't get any errors until I click the button that calls the purchase() method.