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 throughpaymentqueue:restorecompletedtransactionsfailedwitherror:
method.
so method called once after transactions restored, , if temporarily disable alerts individual transactions while restoring them, fine.
Comments
Post a Comment