Unable to acknowledge the purchase on Android #2917
Unanswered
thechaudharysab
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my first time working with IAP and I think I'm close but the lifecycle of an IAP is what get me confused.
The in-app products I have are virtual coins hence users can buy them as many times as they like so I keep
isConsumable: true
. The code below is more for Android as I haven't configured it for iOS yet.I followed the documentation to first add the below code in my
App.tsx
:After this, the first screen that shows is
Home.tsx
in which I added:Then finally in my
BuyCoins.tsx
screen which I navigate to from Home, has:When I try to purchase it gives me this in console log:
Checking the receipt @ subscriptionListener it shows correct information except for
"acknowledged":false
which I'm not sure why I'm unable to gettrue
.I thought because I'm in dev mode it might be the reason or some other step in the lifecycle that I'm missing maybe?
Beta Was this translation helpful? Give feedback.
All reactions