In App Purchases Sandbox Testing - Old sandbox users keep prompting

主宰稳场 提交于 2019-12-19 05:54:08

问题


I am working on an iphone game with in app purchases. I'm trying to retrieve my sandbox user's previous purchases by calling restoreCompletedTransactions, but no callback is being fired.

I read online from some other people who have had similar issues to delete the sandbox user and try creating a new one. I tried deleting and creating new test users multiple times over the course of a month or so (some users report that it's apple's sandbox servers) but I have had zero luck.

Here's the strange thing, every time I'm prompted for my user credentials on my iphone when I make that restore call, I get prompted for all of my previous sandbox accounts I've ever tried. It's very weird, because I've deleted them from ITunesConnect and also signed out on app store on my IPhone settings.

I've also tried restoring my IPhone - didn't work either.


回答1:


Once you add a transaction observer iOS will check the default Queue if there is any non completed transaction (which mean you didn't finish it) so it will show the alert box every time there is a transaction until you finish it even if you didn't do any action to add a new payment. so try to call finish transaction for all transactions which currently stuck on the queue.



来源:https://stackoverflow.com/questions/10049521/in-app-purchases-sandbox-testing-old-sandbox-users-keep-prompting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!