I have configured the revenue cat react native SDK. The products are configured in the offerings sections and they are getting fetched properly. All good until this moment.
Once I clicked Buy now, The popup of Apple login opens up and after adding sandbox user credentials It says “purchase success-full” with “tick” sound on physical Iphone.
Once that’s done, I get new popup saying “You are all set mode:[sandbox””. After dismissing this popup my app freezes. Nothing happens. Even I am not getting the
`custmer_info` or `puchase_info` after the successful purchase.
Please help
try {
Purchases.setDebugLogsEnabled(true);
console.log("initiated purchase") // this will execute
const purchaseData = await Purchases.purchasePackage(incomingPackage);
console.log("purchaseData", purchaseData); // not getting this line
console.log("done puchase") // not getting this line
}
} catch (e) {
console.log(JSON.stringify(e, null, 4)) // this also doesn't execute
console.log("err", e);
} finally {
console.log("in finally block") // not even this executes
}