Similar theory behind those “do you like this app” prompts that come from the app itself. If you tap “yes” they’ll give you the prompt to rate on the AppStore. If you tap “no” they won’t. This can seriously inflate an app’s rating and help prevent low ratings. Nice, underhanded and effective dark pattern!
Is it actually explicitly disallowed in Apple's guidelines? Their wording almost makes it indicate they want you to only ask for a rating when people are happy with the app:
https://developer.apple.com/app-store/ratings-and-reviews/
Make the request when users are most likely to feel satisfaction with your app, such as when they’ve completed an action, level, or task.
I understood that to mean, if you've goals within you app (e.g. CityMapper — completing a journey; Dropbox — uploading a file; some game — beating a level), ask after the user has completed them, rather than what apps used to do (e.g. before you've been created an account, or getting in your way while you're changing some setting). But when they _do_ ask theyre meant to show the rating dialog either way, not first check what rating you would give.
Interesting! It’s obviously been a while since I was in the 3rd party app business because in my day, the use of these was widespread! Nice to see the vulnerability was closed.
Unfortunately it's still widespread, as the rating dialog shouldn't come up during the app review process. So it's unlikely to get caught without being reported.