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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -