Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In-App Purchase Sandbox - Continuous prompt for Apple Login?

I am testing in app purchases in my app right now. I have set up my test accounts in the sandbox on iTunes connect. I am able to sign out of the app store from Settings, then go through the purchase flow on my device with no problems. It prompts for login, I use Existing Account, enter the sandbox test user credentials and am able to purchase or restore products.

The problem is that throughout my session and also when I am bringing the app back from the background, I am continually prompted to re-enter the iTunes app store password. The dialog has my test user id pre-filled and is asking for the password. It also happens when my app is in the background and I am using other apps. Hitting Cancel from here doesn't seem to affect anything negatively.

I am running iOS 7.

Is there something I might be doing wrong with SKPaymentQueue to cause the prompt to be showing again?

Is this only a sandbox issue?

like image 920
Mark Struzinski Avatar asked Sep 25 '13 11:09

Mark Struzinski


People also ask

Does Apple have sandbox?

In iOS and iPadOS, the sandbox account appears in Settings > App Store after the first time you use the device to attempt a purchase in a development-signed app. There's no need to sign out of the non-Sandbox Apple ID. Sign in using a Sandbox Apple ID.

How do I get rid of sandbox on my Iphone?

Try to go Settings -> iTunes & App Store scroll down to bottom and find SANDBOX ACCOUNT and clear data here.

What is Apple app sandbox?

Sandboxing. All third-party apps are “sandboxed,” so they are restricted from accessing files stored by other apps or from making changes to the device. Sandboxing is designed to prevent apps from gathering or modifying information stored by other apps.


1 Answers

I was running into this. I realized I was not calling finishTransaction.

[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
like image 144
jriggs Avatar answered Oct 19 '22 14:10

jriggs