Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
274 views
in Technique[技术] by (71.8m points)

ios - in-app purchase Sandbox Environment loop

I have in-app purchases working in my production app, and I'm adding a new item for sale.

However, I can not test a new in-app purchase in the sandbox environment. My purchases show up correctly. Restore works. However, if I buy the purchase, then I am prompted to login. I login using a test user account (I have 4 that worked about a month ago and are active). I'm then directed to the AppStore where I get a dialog box pop-up saying: [Environment: Sandbox] with cancel or continue. When I continue I am prompted for apple id password, which I use and press OK. It says "Loading..." for a few seconds and then the popup comes up again saying [Environment Sandbox] cancel/continue.

I have gone through about 5 times.
I have tried the account that I used to test previously I have created a new user I have tried to test on multiple devices that both worked about a month ago. I have reset my device.

In the meanwhile, I've been able to test out my functionality and it's OK - but I can't do the end-to-end purchase/test that I want to do before releasing the update.

Has anyone seen anything similar? I'm looking for any suggestions. Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

OK. I've figured this out. It was my test account. Since I was taking the account and logging in through Settings->App Store, I was registering each with credit card and email notification. I used an old account that created before but hadn't "activated", and it worked. So, the key was to not log in through the Settings->Store - stay logged out. And then log in with a test account that was only created on iTunes Connect, but never activated.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...