-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck on "Sign-in Required" infinite loop: App keeps asking for itunes password #136
Comments
Do you try to restore purchases in the background? |
@superandrew213 How would it be like in the background? |
Do you call this when the user presses a button or do you call it automatically in the background to restore all the user's purchases? |
Oh right. There are both cases:
But why would this cause an infinite loop? Shouldn't it just ask once at max? |
I'm triggering Try disabling |
No luck. Even after I closed all apps the alert keeps showing to me asking for the password, even if I type it correctly... Seems to be an ios bug. |
Try restarting your phone and disable |
Unfortunately didn't work. Infinite loop is still there, even after closing the app... |
Maybe it's this: https://stackoverflow.com/a/24954219/2228575 Maybe there is some place that should call react-native-in-app-utils/InAppUtils/InAppUtils.m Lines 61 to 74 in 6bf387b
|
So, I added a console.log: It's showing there are more than 40 transactions in the queue! It definitely seems to be related to If I tap |
After you clear the queue, if you press restore once, you get 40 transactions in the queue? |
@brunolemos if you have 40 transaction in the queue then it means you were testing something and killed/crashed the app before the transaction finished. You will have to manually clear the queue for now |
Not 40, but a lot of them (~6?).
Do you mean by code? But what if the users get in this state? I'd like to do some fix that would work for them too PS there is a possibility this won't happen on production. Found some people saying this may be a bug related to testflight |
Yes. that's the idea. Your app won't be approved by apple if this is happening systematically. |
Just another info, this is happening to me and all the team that tested (another 2 people) that are not developers |
i would suggest adding a break point in that switch and see if it's going in a case where we don't have finishTransaction. obviously queue should be flushed before this break point to isolate the problem. you can comment out |
It seems a bug for iOS11,you can try like this, This is what worked for me: |
when you ask for StoreKit to restore purchases it places all previous transaction ins queue. and they should be finished again too |
I've had this affecting my phone for months. and I found a post that said, if your restore purchases button in your app is working correctly. Run the app on the affected that you think caused the sandbox sign-in required alert, tap the restore purchases button in your app, and it should fix it once and for all, if somehow you do something to make it come back again, you can just do the same thing, hit restore purchases and it should go away again. it's like hitting the reset button. Before doing this, I had exactly 55 alerts that would pwn my phone for 45 straight seconds of tapping and it would happen once or twice a day. Now it never happens. I hope this is helpful. |
So it shows the "Sign-in Required" alert.
If I press Cancel, it will close it and reopen automatically right after.
Same thing if I type the correct password and press Continue.
Is this an issue with this library, react native, ios, or what?
React Native 0.49.5
iOS 11.2
The text was updated successfully, but these errors were encountered: