I have a non-consumable IAP that has content hosted with Apple. While testing, I have seen a failed download. Should I close the transaction on download .failed?
for download in downloads {
switch download.downloadState {
case .active:
// deal with active
break
case .failed:
// inform the user the download failed
// should I close the transaction here? ie:
SKPaymentQueue.default().finishTransaction(download.transaction)
break
// cut code...
}
} // end each download
If I did close the transaction, then the user would need to click on restore to start the download again. If I did not close the transaction, then I am presuming Apple will send the purchase or restore again later, which would trigger a download and have a chance to complete on .finished.