恢复后应用内购买购买速度非常慢
当我恢复以前的购买(通过使用 [[SKPaymentQueue defaultQueue] RestoreCompletedTransactions]
)然后立即购买时遇到问题 ([[SKPaymentQueue defaultQueue] addPayment: payment]
) 。我必须等待很长时间才能显示来自 AppStore 的警报。
我可以看出它似乎在 paymentQueue:updatedTransactions:
中调用这个 [[SKPaymentQueue defaultQueue] finishTransaction:transaction]
,这使得它变慢。当我注释掉它时,它的工作速度会更快。
根据 Apple 的应用内购买指南,每次观察者调用 paymentQueue:updatedTransactions 时,我都应该调用 finishTransaction。 我怎样才能解决这个问题?
非常感谢
I have a problem when I restore previous purchases (by using [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]
) and then I purchase immediately ([[SKPaymentQueue defaultQueue] addPayment:payment]
). I have to wait for long time until showing alert from AppStore.
I can tell it seems to be calling this [[SKPaymentQueue defaultQueue] finishTransaction:transaction]
in paymentQueue:updatedTransactions:
, which makes it slow. When I comment this out it works faster.
According to Apple's In-App Purchase Guide I should call finishTransaction
every time when the observer calls paymentQueue:updatedTransactions
.
How can I figure this problem out?
Thank you very much
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论