react-native-rate icon indicating copy to clipboard operation
react-native-rate copied to clipboard

Hack to determine if SKStoreReviewController was shown is not working on iOS 13.5

Open rkrueger11 opened this issue 4 years ago • 9 comments

Currently on iOS 13.5 w/ RN version 0.61.5 and the hack to determine if the SKStoreReviewController was shown is not working and instead always sends the user to the App Store.

rkrueger11 avatar May 28 '20 22:05 rkrueger11

This functionality seems to still work for me on iOS 13.5 simulators. Is this something you've seen on devices?

robertpaul01 avatar Jun 12 '20 17:06 robertpaul01

Yep - using an iPhone X.

rkrueger11 avatar Jun 12 '20 18:06 rkrueger11

I just test it too and it's working but only the first time you show it. On this condition newWindowCount > originalWindowCount, the first time originalWindowCount is less than newWindowCount. But for some reasons, the next time they are both the same value.

Any help ?

robinalexandre avatar Jun 16 '20 12:06 robinalexandre

I'm not sure why it isn't working at all for some of you (haven't been using the popup in my apps), but @robinalexandre this issue is detailed in my README under the iOS specifics section. Basically, once the window appears, it is still in the array of windows even after being dismissed. Probably crummy coding on part of the Apple Developers, but maybe it's intentional. Idk.

KjellConnelly avatar Jun 16 '20 14:06 KjellConnelly

Same here. App Store opens after the delay is up on iOS.

rolfb avatar Sep 15 '20 09:09 rolfb

with

preferInApp: true,
openAppStoreIfInAppFails: false

success returns false even if the in app dialogue is shown

rolfb avatar Sep 15 '20 09:09 rolfb

Are there any updates? I have the same problem.

sshvaiko avatar Oct 30 '20 10:10 sshvaiko

The issue is still reproducible on iOS 15. From the documentation and StackOverflow, it seems like there is no verified way to check whether the Review request was shown or not. So this hack on the library side can't be a recommended working solution, what we currently experience. So I would propose to either remove possiblyOpenAppStore completely to avoid this kind of random behavior or restrict it to some lower iOS version if it reliably works on them (for iOS 13.5, 15.0 this is not the case). What are your thoughs on this?

sergiivorobei avatar Oct 28 '21 08:10 sergiivorobei

still an issue, any tips?

JestemTrzcinska avatar Dec 20 '23 15:12 JestemTrzcinska