Closed yoat closed 4 years ago
Can you confirm the latest version of “PeterStaev/nativescript-purchase” and/or “@proplugins/nativescript-purchase” has been tested to work with iOS 13?
Hey @yoat , looking at this seems this is a known problem with the new XCode/iOS Sim. Can you try your code on an actual device or reboot the sim/xcode/mac?
From what I know there haven't been any changes to the native APIs in iOS13 and since the plugin directly uses those APIs it should be working just fine. But I haven't tested it personally.
I'm running it on actual hardware. The iOS simulators do not support IAPs.
The error I posted is from a debug session on a iOS 13 device. The same code that works on iOS 12 hardware doesn't work on iOS 13 hardware.
Another post also suggests some problems with dependencies. Are you using any other plugins in your project that might be using some cocoa pods that might be outdated? Can you try to simulate the problem on a blank project with just the purchase plugin?
And for your reference, specifically the getProducts()
function works perfectly fine in Simulators 😉 The purchase workflow that initiates an actual purchase is what doesn't work.
No further response so closing this one for now. In case you still have problems, please provide more details.
My code works on Android and iOS 12, but on iOS 13 there is an exception being thrown in the nativescript-purchase getProducts() call.
The output from within the catch block above is: "error getting products: Error: Error decoding object"
Is there something we have to do differently for iOS 13?