创建新的iTunes连接测试用户后,应用内购买无法正常工作(In

编程入门 行业动态 更新时间:2024-10-24 16:23:25
创建新的iTunes连接测试用户后,应用内购买无法正常工作(In-App purchase not working after creating new iTunes connect test user)

我的问题是在我的Mac OS X应用程序中测试应用内购买; 在我看来,问题与我的测试帐户有关。 之前我可以使用测试用户帐户在我自己的Mac上测试IAP。 但几周前,当我试图在沙盒中进行购买时,出现了一个对话框,说我应该在App Store上查看我的帐户信息,我登录真正的App Store时犯了一个错误,我的测试帐户不能现在用于测试。

问题是:我删除了旧的测试帐户并创建了一个新帐户。 现在,当我想测试IAP时,会出现一个对话框,询问我是否要在沙盒环境中购买产品,而下一个提示用户/密码的对话框不会显示。

使用NSLog我发现,当我进入应用程序商店时,正在加载产品,当我点击产品购买时,应用程序开始购买带有产品ID的产品。 如果我是对的,在这个阶段,提示应该显示出来:你想购买产品myproduct [沙箱环境]吗? 但是这个对话框永远不会出现! 我从未在旧测试帐户中遇到过同样的问题。

任何建议?

My problem is testing In-App purchase in my Mac OS X application; it seems to me that the problem is related to my test account. I could test IAP on my own Mac quite well with a test user account before. But a few weeks ago while I was trying to make a purchase in sandbox a dialog box showed up saying that I should review my account information on App Store, I made a mistake by logging into the real App Store and my test account can't be used for testing now.

Here is the problem: I deleted the old test account and created a new one. Now, when I want to test the IAP the dialog box that asks if I want to purchase a product in sandbox environment and the next one that prompts for user/pass don't show up.

Using NSLog I figured out that when I enter In-App store, products are being loaded and when I click on a product to buy it, app starts buying product with product ID. If I am right, at this stage the prompt should show up saying: do you want to buy product myproduct [sandbox environment]? But this dialog box never shows up! I never experienced the same problem with the old test account.

Any suggessions?

最满意答案

问题得到解决。 我现在可以在更新iTunes后使用我的新测试用户帐户测试IAP!

The problem is resolved. I can now test IAP using my new test user account AFTER I updated iTunes!

更多推荐

本文发布于:2023-04-27 16:32:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1327193.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   测试   用户   工作   iTunes

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!