沙盒测试帐户反复询问iOS应用内购买密码 [英] Sandbox test account asking password repeatedly for iOS In-App Purchase

查看:55
本文介绍了沙盒测试帐户反复询问iOS应用内购买密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Swift语言开发了一个应用程序.我已经添加了应用内购买来删除广告.我还创建了一个沙箱帐户进行测试.但是后来我忘记了这个帐户的信息.(我不确定该信息)密码输入屏幕仍显示在闪烁的屏幕显示中.即使我重置设备并重新加载它,也没有任何好处.实际上,一切工作正常.这是我唯一的问题.我该怎么办.我很高兴你帮助了我.谢谢.

I developed an application in Swift language. I've added in-app purchases to remove ads. I also created a sandbox account to test. But then I forgot the information of this account. (I'm not sure of the information) The password entry screen is still displayed in a flashing screen display. Even if I reset the device and reload it, it did not benefit. Actually everything is working properly. This is my only problem.What should I do. I'm glad you helped me. Thank you.

推荐答案

我遇到了这个问题.如果您尚未完成交易(出于任何原因),则它们将排在队列中.并且您将遇到连续的登录屏幕"问题.

I had this problem. If you are not completed transactions (for any reason) they stay in queue. And you will have problem with continual "Log in screen".

SKPaymentQueue.default().finishTransaction(transaction)

应放在以下内容的末尾:

should be placed at the end of:

restore(transaction: SKPaymentTransaction)
fail(transaction: SKPaymentTransaction)
complete(transaction: SKPaymentTransaction)

这解决了我的问题.希望对您有帮助.

This fixed my problem. I hope it help you.

这篇关于沙盒测试帐户反复询问iOS应用内购买密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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