Hello World!
I’m a developer on a React Native mobile app that uses Revenue Cat (v. 5.14.0) to paywall our upgraded features behind a subscription. We have received a report of a user being unable to purchase our subscription from Apple. This user has submitted a video recording of the issue and the purchase process begins as expected and then ends un-expectedly. The app does not crash but premium was not purchased.
Our onPurchase implementation looks like this: (sorry for formatting)
```
const onPurchase = useCallback(
async (subscription: PurchasesPackage | null) => {
try {
setLoading(true);
if (subscription) {
const { customerInfo } = await Purchases.purchasePackage(subscription);
if (
typeof customerInfo.entitlements.active[
REV_CAT_ENTITELEMENTS.PREMIUM_PRO
] !== "undefined"
) {
Sentry.Native.captureMessage("Premium Pro Purchased");
setLoading(false);
checkPremiumProStatus();
if (isLoggedIn) {
setPreProModalVisible(false);
} else {
setSignUpModalVisible(true);
}
}
}
} catch (e: any) {
setLoading(false);
setPreProModalVisible(false);
if (!e.userCancelled) {
Sentry.Native.captureException(e);
}
}
},
[checkPremiumProStatus, isLoggedIn, setPreProModalVisible]
);
```
From our error logging I see the following potentially-related issue:
```
There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Co…
```
However, I believe that we currently have other iOS users purchasing every variation of our subscription that we offer, so the `There is an issue with your configuration` warning doesn’t seem correct to me.
If you’re encountering a similar issue, can help, or want me to add more information, please join the discussion!