【发布时间】:2016-09-11 18:49:53
【问题描述】:
ios 用户帐户密码也会弹出。如果在应用程序仍处于打开状态时再次调用,则不会发生这种情况,但如果应用程序关闭并重新打开,则会重复。
谢谢
【问题讨论】:
ios 用户帐户密码也会弹出。如果在应用程序仍处于打开状态时再次调用,则不会发生这种情况,但如果应用程序关闭并重新打开,则会重复。
谢谢
【问题讨论】:
听起来您有未完成的购买需要完成。
在您的应用程序调用完成之前,购买将保持待处理状态。这是为了确保您的应用程序处理和验证购买。
当您处理购买并交付产品或处理取消/失败时,您应该致电InAppBilling.service.finishPurchase:
private function purchase_cancelledHandler( event:PurchaseEvent ):void
{
// This transaction was cancelled so you should notify your user and finish the purchase
trace( "purchase cancelled" + event.errorCode );
if (event.data && event.data.length > 0)
InAppBilling.service.finishPurchase( event.data[0] );
}
在启动时,您可以在SETUP_SUCCESS 事件之后检索待处理的购买:
private function setupSuccessHandler( event:InAppBillingEvent ):void
{
var pending:Array = InAppBilling.service.getPendingPurchases();
// Iterate over and handle as required
}
【讨论】: