We have noticed a problem with Build Corona-2019.3528 on IOS 13 with XCode 11.0 .
After the payment gone through when the purchased state is triggered in the listener, the receipt from the transaction is broken. We are using the standart store implementation.
On IOS 12 the same version is working. Also are versions wtih older Corona versions and an older XCode Version working fine.
I’m having what I think is a different flavor of the same problem.
On older iOS devices (v 9.3.5), IAP transactions crash the app on the latest version of my app, built with 2019.3531, but work fine on the previous version of my app, built last month with 2019.3504. The crash seems to happen at the point when the app has received a reply from Apple’s servers.
I also experience a crash when attempting to restore purchases.
IAP transactions work fine on devices running iOS 12 and 13. (I don’t know about iOS 10 and 11, since I don’t have any test devices that use that version of the OS.)
I’d attach a crash log if I could, but, even though I’m watching the crashes happen in Console, the report is not showing up where it is supposedly being saved.
when I print the transaction.receipt to the console.
The developer reporting this on Slack has gone back to some older builds that he knows worked before so apparently Apple has changed how the receipt is formatted. It’s possible that it’s a hex encoded byte array that contains a JSON structure inside it.
After this issue was reported, I put out an update of my app that I built with Corona 2019.3476 targeting iOS SDK 12.1 and it works fine: No problem with App Store review, no customer complaints and plenty of successful transactions.
What does this mean for apps already published. Is there something “broken” with IAP now or is this for new app builds? Do I have to “fix” old apps in the store or is everything working like before if it already is in the store?
I just wanted to add a quick bit of followup based on my experience today: In September, after this problem cropped up, I did a build using Corona 2019.3476 targeting iOS SDK 12.1 that worked fine. Today, the same build combo resulted in crashes on purchase on devices running iOS 9. However, after downloading the latest daily build (3545) and activating the new Apple IAP plugin, purchasing on iOS 9 is once again working.
So, if you are using an older version of Corona targeting an older version of the iOS SDK, you might start seeing transaction failures in future builds. Obviously, your mileage may vary.
Also, “Restore Purchases” is still a little crash-prone, but upon relaunch, purchases are successfully restored.
Thank you for getting this taken care of, Team Corona- I appreciate it!
I tried your solution. When trying “restore purchases” the app crashes immediately.
I was using the latest iPad Pro running iPad OS 13.1.3.
Corona version is 2019.3547 and iOS SDK 12.4. There is no error message in device log.
Anyone knows what’s going on?