In-app purchase cancel button causes the app to crash without any log information

I call SKPaymentQueue.default().restoreCompletedTransactions()and after iOS asks for my password, and I select "Cancel", the application will crash without a log.

Sometimes an in-app purchase simply falls without additional information or errors. I use IAPHelper. Sometimes an application causes a crash on a call SKPaymentQueue.default().add(payment).

os: iOS 10
Xcode 8.0
language: Swift 3

+4
source share

Source: https://habr.com/ru/post/1654747/


All Articles