iOS应用内购买和订阅:测试 [英] iOS In-App purchasing and subscriptions : Testing

查看:311
本文介绍了iOS应用内购买和订阅:测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一所大学已经实施iOS应用内购买,每月自动续订。我正在接管代码库,并希望测试它是否正常工作。我知道购买正在进行,但自动更新是我所担心的。

A college of mine has implemented iOS in-app purchasing on a auto-renewing monthly basis. I am taking over the code base and want to test it is working. I know the purchasing is wokring but the auto-renewing is what I am worried about.

我已经设置了一个测试用户并阅读了在沙箱模式下说的Apple文档沙箱中一个月是5分钟。

I have set up a test user and read the Apple documentation that says in sandbox mode, a month is 5 minutes in the sandbox.

但是我在5分钟后没有收到Apple发回的任何帖子?我应该吗?

However I am not getting any post back from Apple after 5 minutes? should I?

在AppDelegate中我有

In the AppDelegate I have

 inAppPurchase = [TFInAppPurchase new];
[[SKPaymentQueue defaultQueue] addTransactionObserver:inAppPurchase];
[inAppPurchase updateAvailableProductsCache];

我预计5分钟后会发出通知或什么?

I am expecting after 5 minutes, it to fire of a notification or something?

推荐答案

没有通知。你自己跟踪它(持续时间)。您将收到包含您保存的原始交易的收据。使用此选项验证(可能每次启动时)用户的订阅仍处于活动状态。

There is no notification. You keep track of it yourself (the duration). You get a receipt with the original transaction that you save. Use this to verify (perhaps on launch each time) that the user's subscription is still active.

这篇关于iOS应用内购买和订阅:测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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