Open SilKeshari opened 2 months ago
I'm facing exact same issiue. To prevent the automatic redirection, I set 'openAppStoreIfInAppFails' to false and its stop to redirect user.
`const rateApp = () => { const options = { AppleAppID: "#", // Replace with your Apple App ID preferInApp: true, // If true, attempts to open the in-app review dialog openAppStoreIfInAppFails: false, // Set to false to prevent redirection to the App Store fallbackPlatformURL: "#" // Fallback URL if all else fails };
Rate.rate(options, (success, errorMessage) => { console.log('Rate options:', options); console.log('Rate success:', success); console.log('Rate errorMessage:', errorMessage);
if (success) {
console.log('User rated the app');
} else {
console.log('User did not rate the app');
if (errorMessage) {
console.error(`Rate.rate() error: ${errorMessage}`);
}
}
}); };`
React Native Rate prompt is navigating to App Store, if kept idle for 30seconds in IOS.
Within the options I have passed preferInApp = true and I am able to see the prompt but still navigating to App Store if I don't click on any of the CTA's (Submit or Cancel) for 30 seconds.
Kindly help me on this. Thanks