You can reinitiate the download by first pausing all downloads, and then resuming all downloads. Following are the helper methods I use. Note that I make use of an instance variable containing strong references to each SKTransaction being downloaded.
- (void)pauseAllDownloads {
METHOD;
for (SKPaymentTransaction *transaction in self.transactionsBeingDownloaded) {
[[SKPaymentQueue defaultQueue] pauseDownloads:transaction.downloads];
}
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO]; //stop the dl activity icon in the status bar
}
- (void)resumeAllDownloads {
METHOD;
if (self.transactionsBeingDownloaded.count == 0) {
[self restoreCompletedTransactions];
} else {
for (SKPaymentTransaction *transaction in self.transactionsBeingDownloaded) {
NSLog(@"state: %i", transaction.transactionState);
[[SKPaymentQueue defaultQueue] resumeDownloads:transaction.downloads];
}
}
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; //show the dl activity icon in the status bar
}