Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sandbox test account asking password repeatedly for iOS In-App Purchase

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.

enter image description here

like image 611
fozoglu Avatar asked Oct 18 '22 08:10

fozoglu


2 Answers

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.

like image 151
Milos Avatar answered Nov 15 '22 07:11

Milos


First of all whenever you are working with IAP and try to purchase any service at that time apple will ask for the password of your iTunes account or if you work with sandbox account too. if you enter the password and continue your service will be available to you.

other then that if you haven't setup your account in your device and try to download something from store at that time apple will ask you for password or account setup.

As you describe in your case you forgot your sandbox test account password. and you can't able to procced with IAPso every time may you cancel the popup for password. you can continue with creating another sandbox account or set the any temporary account for apple account from device settings to avoid this popup for password. and what I observe is sometimes with sandbox testing of AIP even after getting purchase some times the popup is paper but it does not make your purchase call again. sometimes it's scaring me but it does not make any effect for IAP

Hope this help you.

like image 24
Maulik Pandya Avatar answered Nov 15 '22 07:11

Maulik Pandya