title: Mechanism to detect display of iOS 10.3 app rating dialog?
body: <p>TL;DR: Is there some way on iOS to detect the presence/display of the Storekit App Rating dialog added in iOS 10.3?</p>
  
  <p>I've recently added support for the new <a href="https://developer.apple.com/reference/storekit/skstorereviewcontroller/2851536-requestreview?language=objc" rel="noreferrer">app rating dialog</a> to my apps using:</p>
  
  <pre><code>[SKStoreReviewController requestReview];
  </code></pre>
  
  <p>However, I'm aware there's some caveats of usage (as <a href="http://daringfireball.net/2017/01/new_app_store_review_features" rel="noreferrer">documented here</a>), namely that the dialog may or may not be presented on calling the above function, the not cases including if the customer has already rated the app or the customer has dimissed the dialog 3 times.</p>
  
  <p>I'm also aware that Apple doesn't expect presentation of the dialog to be directly invoked by a user action and therefore the presence of the dialog to be reported:</p>
  
  <blockquote>
    <p>Although you should call this method when it makes sense in the user experience flow of your app, the actual display of a rating/review request view is governed by App Store policy. Because this method may or may not present an alert, it's not appropriate to call it in response to a button tap or other user action.</p>
  </blockquote>
  
  <p>But that doesn't stop the UX team putting these buttons in the graphic designs and asking "can we know if the dialog was shown"?</p>
  
  <p>So, my question is, is there some other indirect way that the presentation of this dialog can be determined?</p>
  
  <p>I've recently been doing some automated testing of both Android and iOS apps using Appium and using Xpaths to find the native UI elements, so just wondering if the same can be achieved from within the context of an iOS app. </p>