Closed liyamahendra closed 1 year ago
I am getting the same 21002 response on my real device and I am testing the build from TestFlight.
PS: I got this fixed. I was testing this for sandbox account and I forgot to pass isTest true.
validateReceiptIos({
receiptBody : body,
isTest: true,
})
Description
On app startup, I want to check if the auto-renewing subscription is still active or not. I'm using the below code:
However, the
decodedReceipt
returns{"status": 21002}
Expected Behavior
Should return the Receipt Info
Screenshots
Environment:
To Reproduce Steps to reproduce the behavior:
RNIap.initConnection()
RNIap.getAvailablePurchases()
as shown inisSubscriptionActive
method[Optional] Additional Context
I'm using TypeScript.