In App Purchase “sign in to itunes store” after [[SKPaymentQueue defaultQueue] addTransactionObserver:self]; [duplicate]

流过昼夜 提交于 2020-01-06 08:45:05

问题


Possible Duplicate:
SKPaymentQueue addTransactionObserver asking for App Store password on startup after in-app purchase

I have a problem, when I loadStore in app purchase I add a transaction observer, the problem is that when I add the observer I get a message to sign in to the itunes store, to buy something, does it may be that last transactions didn't finished?


回答1:


I had this problem, which was fixed by calling finishTransaction: on the payment queue. Without this the transaction persists like a lost phantom.




回答2:


Actually, I'm having the same problem... But I can tell you that it only happens on ONE of my iPads, and not the other. (They were both 4.3.3).

Sign in to the iTunes Store
If you have an Apple ID, sign in with it here.
AOL members can sign in using there AOL username and password.

[Environment Sandbox]

[Cancel] [Buy]

Silly apple, how can I test my app if I'm logged into iTunes?

But even if I login (Buy), this dialog appears EVERYTIME launch my app and fetch my product description. THEN, I see my sandbox login.

Tried a restore, and it disappeared for the first run. Perplexing...

=====

LATER:
It seems that restoring the device (3 times) has fixed the problem. I wish I had a more concrete answer for you. But it worked for me.

=====

MUCH LATER: Yup. Signing-in every time when prompted by Apple did the trick. I eventually caught up with my backlog of incomplete transactions. (And deleting my old test accounts in iTunes seemed to be a faster way to accomplish the same thing.)



来源:https://stackoverflow.com/questions/6971740/in-app-purchase-sign-in-to-itunes-store-after-skpaymentqueue-defaultqueue-a

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