How do I disable in-app prompts for ratings and reviews on iPhone?

Some apps constantly ask for reviews and ratings, is there a way to stop this on iPhone?

iOS 11 allows you to stop apps from asking you to rate and review them in the App Store (though if you got it for free and use it all the time, you should at least return the favor with a rating). Head to Settings -> iTunes & App Store and toggle off In-App Ratings & Reviews.

How to turn off in-app ratings requests on iPhone and iPad.