我无法进入app购买测试工作 [英] I cannot get in app purchase test to work

查看:115
本文介绍了我无法进入app购买测试工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用内购买没有成功。我提交了免费的应用程序二进制文件,然后拒绝了二进制文件。我添加了测试产品。我已批准测试产品TAP001。

I have had zero success with in app purchase. I have submitted the free app binary, and then rejected the binary. I have added the test product. I have approved the test product TAP001.

我已按照代码示例无效。我使用com.companyname.appid.TAP001和TAP001执行SKProducts请求

I have followed the code examples to no avail. I do a SKProducts request using both "com.companyname.appid.TAP001" and just "TAP001"

无论如何,我得到一个空的response.products和response.invalidProductIdentifiers with我发送的产品字符串。

Regardless, I get an empty response.products and response.invalidProductIdentifiers with the product string I sent.

我创建了一个测试用户,但看到我无法获得任何产品信息,测试用户还没有真正开始发挥作用。

I created a test user, but seeing how I cannot get any product info, the test user doesn't really come into play yet.

在应用程序购买中是否可以在调试或发布版本中进行测试?或者它必须是分销?

Can in app purchase be tested in debug or release builds? Or does it have to be a distribution?

在购买应用程序之前,必须在应用程序商店中拥有完全接受的应用程序吗?

Must one have a fully accepted app in the app store prior to testing in app purchase?

我只是试图测试这个过程,我还没有真正的应用程序。我甚至填写了所有银行和税务信息。我已按照应用文档中的步骤操作,但显然我有错误或遗失。

I am simply trying to test the process out and I do not have an actual app yet. I went as far as to fill out all the bank and tax information. I have followed the steps in the app docs but clearly I have something wrong or missing.

谢谢

推荐答案

我刚刚开始工作。我只使用TAP001代替com.companyname.appid.TAP001。我收到了产品信息。

I just got it to work. I used only "TAP001" for a product instead of "com.companyname.appid.TAP001". and I got product information back.

我感到愚蠢,但我知道过去曾尝试过TAP001但没有成功,但在此之前我已尝试过很多事情,我必须要有其他一些信息我做错了。

I feel dumb but I know have tried "TAP001" in the past with no success but I have tried so many things prior to this that I must have had some other information wrong a the time I did.

对于那些正在努力解决这个问题的人,我可以说:

For those who are struggling with this issue, I can say:


  • 您的应用不需要在商店中存在。

  • 您需要在App store提交中使用应用。上传后拒绝二进制文件。

  • 测试你的应用程序应该在发布或调试模式下工作

  • 你需要一个in app产品清除待售

  • 您的产品请求只需要包含产品ID

  • Your app does not need to be live in the store.
  • You do need an app in the App store submission. Reject the binary after uploading it.
  • Testing your app should work in Release or Debug modes
  • You do need an in app product "Cleared for sale"
  • Your product request only needs to contain the product id(s)

这是例如:

- (IBAction)buyButton1Click:(id)sender{
    NSSet *productList = [NSSet setWithObjects:@"TAP001", @"TAP002", nil];

    SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:productList];
    request.delegate = self;
    [request start];
    }

这篇关于我无法进入app购买测试工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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