That makes for a lousy user experience. On the previous app I worked on, we took great pains to avoid popping the review prompt when we thought it was inconvenient for the user. In that case it was a streaming app, and we didn't want the prompt to happen while you were in the middle of watching something. Instead, we called the API when the user was switching tabs to one that didn't involve streaming.
The review prompt API is fine. It's the AppStore review and Apple's opaque and arbitrary process that are the problem.