You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@geoffroymorel Thanks for bringing this up. You can validate your receipt in any thread you want.
Personally, I just call validate method from background thread and it works without the warning message:
let receipt = ...
DispatchQueue.global(qos: .background).async {
do {
try receipt.validate()
DispatchQueue.main.async {
// Go back to the main thread
}
} catch {
// Catch the error
}
}
I will think about adding an async validate method and move the validation logic out of the main thread at lib level.
Hello,
I am getting the following double warnings in the console leading to an unresponsive UI for a couple seconds.
Warning is triggered when calling
SecTrustEvaluateWithError
incheckChainOfTrust()
function after callingreceipt.validate()
.I have found the following on stackoverflow.com:
https://stackoverflow.com/questions/73892668/sectrustevaluatewitherror-leads-to-ui-unresponsiveness
Xcode 15.2
iPhone 15 Pro Max iOS 17.3.1
The text was updated successfully, but these errors were encountered: