iphone - How to redownload an in-App purchase application programmatically -


i able implement in-app purchase successfully. able purchase product through in - app purchase.i storing purchase information in nsuserdefaluts.so if next time user tries purchase same product again able handle locally.my problem if user deletes application device,how handle re-downloading of application without charging same product again.i know if application has been deleted device having in app purchase has downloaded again.can show sample code same?

thanks aditya

hi prompt reply.i have implemented same have suggested.what i'm wondering if delete app , install again , asked purchase again.do have pay again upgrade or handled apple server(i.e if upgrade same product again charged again?).is there way know upgraded without asking upgrade again?

the storekit api takes care of , gives you, on request, list of identifiers of purchased items. once got those, it's re-download products again(if not bundled inside app).

excerpt storekit api help:

-(void)restorecompletedtransactions

asks payment queue restore completed purchases.

your application calls method restore transactions finished can process them again. example, application use allow user unlock purchased content onto new device.

when create new product sold in store, choose whether product can restored or not. see in app purchase programming guide more information.

the payment queue deliver new transaction each completed transaction can restored. each transaction includes copy of original transaction.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -