- https://www.revenuecat.com/docs/getting ... quickstart< /li>
https://www.revenuecat.com/docs/getting ... -purchases - https://www.revenuecat.com/ docs/test-and-launch/sandbox/apple-app-store
Код: Выделить всё
try {
console.log("START");
const {customerInfo} = await Purchases.purchasePackage(purchasePackage);
console.log({customerInfo});
if (typeof customerInfo.entitlements.active[ENTITLEMENT_ID] !== "undefined") {
navigation.goBack();
}
} catch (e: any) {
if (e.code === Purchases.PURCHASES_ERROR_CODE.PURCHASE_CANCELLED_ERROR) {
Alert.alert("Error purchasing package", e.message);
}
console.log("CATCH");
} finally {
setIsPurchasing(false);
console.log("FINALLY");
}
Всплывающее окно покупки ниже продолжает открываться и не закрываться, что, по-видимому, и является причиной. Он продолжает открываться после завершения покупки:

Что могу я проверить? Спасибо за помощь.
Подробнее здесь: https://stackoverflow.com/questions/786 ... hase-popup