App Store Receipt -- Username/Pass Dialog popup

Here's the scenario–

  1. App downloaded via TestFlight
  2. appStoreReceiptURL is retrieved
  3. Checks if there is a receipt at that URL
  4. ------> If NOT found–> a new request is via the following, and that's when the authentication dialog pops up, it is successful when sandbox account credentials are entered. Otherwise it fails
let request = SKReceiptRefreshRequest(receiptProperties: nil)
request.delegate = self
request.start()

My Question is (and I have no way to know this for sure), when app is in production, and downloaded from the App Store (Not TestFlight), would that also have the same authentication dialog pop? At this point I was assuming this authentication event is due to TestFligth and Sandbox Apple Account.

[mistakenly selected answered to the question asked earlier– hence re-asking]

SKReceiptRefreshRequest does require a recent authentication and is nearly identical to restoreCompletedTransactions as that also requires authentication. Receipt only vs receipt + transactions.

From your note it appears that is only called IF no app receipt was found, that is perfect. This means SKReceiptRefreshRequest will rarely be called as app installed via the App Store should always be present.

So that prompt can happen in production but should be only in rare instances. If SKReceiptRefreshRequest is going to be called, it should only be called once. If the user attempts a purchase or restore purchases, a new receipt will be provided.

App Store Receipt -- Username/Pass Dialog popup
 
 
Q