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.
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.
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 IAP
so 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With