clee2005
Member
I've been getting a bunch of reports of crashing on iOS 14 devices. I checked the crash logs in Xcode to see that it's consistently crashing here (on iOS 14 only) :
Line 61 of iOS_TransactionListener.mm file in the iOS IAP Extension.
When I tested on our devices I was only able to create this crash when I tried to purchase something and then hit CANCEL to back out of it. Then it would crash to the icons on the device. I've had a number of users report that they cannot open any of our games any more on iOS 14. I could be something completely unrelated that they are reporting, or maybe it's a pending purchase transaction stuck in the queue that shows up when the extension first runs (when the game starts up).
I'm not really sure what's happening on this line of code specifically that's throwing the exception (it's the last line where the exception is actually thrown on). Perhaps mTransactions is null or something unexpected suddenly? I'm just raising this hoping that others might have seen it or have some ideas around it.
Thanks,
Chris
Line 61 of iOS_TransactionListener.mm file in the iOS IAP Extension.
GML:
- (void)paymentQueue:(nonnull SKPaymentQueue *)queue updatedTransactions:(nonnull NSArray<SKPaymentTransaction *> *)transactions
{
NSMutableArray<SKPaymentTransaction*>* mTransactions = [[NSMutableArray alloc] initWithArray:transactions];
NSString* jsonResponse = [self parsePaymentTransactionsIntoJson:mTransactions];
I'm not really sure what's happening on this line of code specifically that's throwing the exception (it's the last line where the exception is actually thrown on). Perhaps mTransactions is null or something unexpected suddenly? I'm just raising this hoping that others might have seen it or have some ideas around it.
Thanks,
Chris
Last edited: