App Bridge App Reveiw Permission Issue

Hello,
Our app recently got approved by Shopify Team. We are planning to add Review Card to the app.

We have followed the doc and doing testing in development store but still getting the following error. Is it expected behaviour?

{
  "reviewEligibility": {
    "error": "MERCHANT_INELIGIBLE",
    "appSlug": null,
    "__typename": "ReviewEligibility"
  }
}

Hi @illusionist3886

You should be able to test this on dev stores: Reviews

Can you link the store that you’re testing this on?

Store URL: water-006.myshopify.com. Thoug I get the above response from GraphQL API but the review modal opens though. And after clicking submit there is no activity in network tab.

Okay - I see what you mean, I believe this is working as expected. Dev stores can preview what the model will look like so you can test out how it opens and how the UI responds. But the actual ability to submit a review is blocked on dev stores.

Understood. Thanks for the clarification.

Hi,

right now we’re using it in such a way that we have a Card with a review request – after clicking the thumbs up we call await shopify.reviews.request();.

However, some customers for some reason are not able to leave a review. I think we could handle this by introducing an additional method to check permissions, e.g. shopify.reviews.canReview().

  • if the method returns false → we don’t show the review request Card,
  • if the method returns true → we display it.

What do you think about this approach?

2 Likes