ios - Need assistance regarding restoring purchase items count -


i using [[skpaymentqueue defaultqueue] restorecompletedtransactions]; restore purchased items, doing want count how many items going restore because have notification tells successful transaction done pops uialertview , alert pops every restore item.

with count want limit restore alert pop once.

take @ skpaymenttransactionobserver's paymentqueuerestorecompletedtransactionsfinished: method.

the documentation -restorecompletedtransactions states that:

after transactions delivered, payment queue calls observer’s paymentqueuerestorecompletedtransactionsfinished: method. if error occurred while restoring transactions, observer notified through paymentqueue:restorecompletedtransactionsfailedwitherror: method.

so method called once after transactions restored, , if temporarily disable alerts individual transactions while restoring them, fine.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -