ios - IAP Restoring Hosted Content -
we developing app has in app purchased - hosted content apple, app works , users can make purchase of content , app downloads ok.
however have since started developing restore purchases button in app, , cannot seem figure out how can request list of purchases apple using
restorecompletedtransactions
currently when request store kit invoking delegate method
- (void)paymentqueue:(skpaymentqueue *)queue updateddownloads:(nsarray *)downloads {
and downloads starting automatically ideally receive list of available downloads user part of restore , present them screen select files want download , kick off download of content.
apple guidelines state cannot seem find examples:
apps more few products, products associated content, let user select products restore instead of restoring @ once. these apps keep track of completed transactions need processed they’re restored , transactions can ignored finishing them immediately.
thanks aaron
when transactions come through, list of downloads perform. sounds you're conflating need preflight downloads perceived need preflight transactions; understand it, not case. let transactions come through, collect downloads, give ui interstitial pick , choose ones initiate download for.
you control when downloads start via similar [[skpaymentqueue defaultqueue] startdownloads:originaltransaction.downloads];
.
for more info: https://developer.apple.com/library/mac/documentation/storekit/reference/skdownload_ref/index.html#//apple_ref/occ/cl/skdownload
Comments
Post a Comment