检测IAP吗?谢谢你吗?消息 - Detecting IAP “Thank You” message

- 此内容更新于:2015-12-13
主题:

IAP我有一个iOS应用程序,我想检测当用户点击OK按钮的“谢谢”UIAlert显示在每个购买。

原文:

I have an iOS app with an IAP, I would like to detect when the user is tapping the OK button on the "Thank You" UIAlert that is shown at the end of each purchase.

enter image description here

解决方案:
我不认为有任何确定火灾的方法。想知道为什么。因为这是iOS警报可能是应用程序是不活跃,所以你将得到一个应用程序委托调/警报时通知解雇。我还没有测试,所以你需要确认。
原文:

I don't think there is any sure fire method.

Interested to know why. As this is an iOS alert it could be that the app is inactive while it's presented so you would receive an app delegate callback / notification when the alert is dismissed. I haven't tested that so you would need to confirm.

网友:是的没有通知更新和没有指针警报视图,你可以设置一个委托。

(原文:Yes there is no notification from storekit and no pointer to the alert view that you might set it a delegate.)

楼主:在IAP级联应用程序展示了几个提醒每个警报给暂停应用程序和每个警报,被让它恢复我的程序计时器(游戏)是每次移动应用程序恢复。我只希望它开始移动后再完全用户完成了IAP流程。

(原文:While in the IAP cascade the app shows several alerts each alert puts the app on pause and each alert that is dismissed make it resume so my app's timer (game) is moving every time the app resuming. I only want it to start moving again after the user finished the IAP process completely.)

网友:您需要添加一个标记,你购买时启动和复位只有当应用程序是由活动获得了成功或失败的回调。它可以更容易出现模态视图显示进展在购买过程中,保持周围,直到用户驳斥了。

(原文:You will need to add a flag that you set when a purchase is started and reset only when the app is made active and has received a success or failure callback. It can be easier to present a modal view to show progress while the purchase is in progress and keep that around until the user dismisses it.)

楼主:@Wain最后我按你建议的那样创建一个模型视图。谢谢!

(原文:@Wain I ended up creating a model view as you suggested. Thanks!)