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

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -