StoreReview.requestReview() not working?

Please provide the following:

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): iOS

For testing purposes, I added a “Review” button with the following onPress action:


It prints true twice, but I never get a prompt for review. Nothing happens on that 3rd line.

I am testing in the Expo app in development mode. Could this be why? Does this only work in standalone, deployed apps?

The code looks like this:

  if (@available(iOS 10.3, *)) {
    [SKStoreReviewController requestReview];

So it seems to me that as long you’re running the app on iOS 10.3 or later it should call [SKStoreReviewController requestReview], and anything that happens after that is up to the OS.

I am not sure whether calling requestReview() in the Expo app vs. a standalone app makes a difference, but I could understand if it did, because any reviews would presumably be for the Expo app itself and not your “experience” running on the Expo app.

Turns out, you need to set the appStoreUrl and playStoreUrl values in app.json. Works now.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.