Discussions

Ask a Question
Back to All

RN restore purchases problem

Hello. i use the method adapty.purchases.restore(); for ios
Why is this method not returning anything? even finaly doesn't work
help me please

const onPressRestoreHandler = useCallback(async () => {
setIsLoadgin(true);
try {
const {purchaserInfo, receipt, googleValidationResults} =
await adapty.purchases.restore();
console.log(purchaserInfo, receipt, googleValidationResults);
} catch (error: unknown) {
console.log(error);
} finally {
setIsLoadgin(false);
}
}, [isLoading]);