iPhone:从什么时候起SKPaymentQueue addPayment触发applicationWillResignActive回调? [英] iPhone: Since when did SKPaymentQueue addPayment trigger the applicationWillResignActive callback?

查看:165
本文介绍了iPhone:从什么时候起SKPaymentQueue addPayment触发applicationWillResignActive回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错过了文档中的信息?难道我要疯了?我调试的一些支付问题,刚才发现以下code为触发我们applicationWillResignActive回调在应用程序的委托。

Did I miss this information in the documentation? Am I going mad?? I'm debugging some payment issues and have just discovered that the following code is triggering our applicationWillResignActive callback in the app delegate.

SKPayment *payment = [SKPayment paymentWithProductIdentifier:productid]; 
[[SKPaymentQueue defaultQueue] addPayment:payment];

这是对IOS3发生这让我觉得这个一贯的行为,但我们可能没有注意到,因为我们之前没有落实applicationWillResignActive回调...

This is happening on ioS3 which makes me think this has always been the behaviour, but we probably haven't noticed because we didn't implement the applicationWillResignActive callback before ...

这是真的是iTunes的storekit是为了做什么?我找不到这种随时随地的官方参考?

Is this really what the iTunes storekit is meant to do? I can't find an official reference to this anywhere?

推荐答案

事实上,我什么也看不到在大约应用程序时,增加了支付辞职的文档,但我可以证实,它发生,我也是如此。我不真正实施 applicationWillResignActive: applicationDidBecomeActive:,但我扔的话在看他们是否被触发,果然,他们做的。

Indeed, I see nothing in the docs about the app resigning when a payment is added, but I can confirm that it happens for me as well. I don't actually implement applicationWillResignActive: or applicationDidBecomeActive:, but I tossed them in just to see if they get triggered, and sure enough, they do.

这篇关于iPhone:从什么时候起SKPaymentQueue addPayment触发applicationWillResignActive回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆