requestSubscription is auto completing without prompting user to subscribe #2257
Unanswered
mj-schmitz
asked this question in
Q&A
Replies: 1 comment
-
I don't see any reference to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had this problem for a few days now, where the requestSubscription function from the useIAP hook is not working properly but no error is thrown. Essentially what's been happening is, only sometimes and somewhat randomly (usually the first 8-10 presses of subscribe button), the requestSubscription will run all the way through to the finally() block of the promise and not prompt the user to subscribe.
This makes it seem like our button is not responsive, but after 8-10 attempts it will load properly and prompt the user. Here is the code:
When I add the andDangerouslyFinishTransactionAutomaticallyIOS field to it and this problem occurs, it returns an error that is
But again, after 8 tries or so, the user is prompted for their subscription. Very weird.
I have no idea why this bug is happening, and then only happening some of the time by not prompting the user immediately for their login info/asking them to subscribe. Any ideas would be great, thank you.
Beta Was this translation helpful? Give feedback.
All reactions