App Store Receipt -- Username/Pass dialog popup

When issuing the app on TestFlight, and if the app requests the App Store Receipt - by calling appStoreReceiptURL.

I've only tested this on app issued via TestFlight, it works fine, but a dialog pops up asking the user to sign into an apple account.

Is the behavior the same when app is published and downloaded via App Store? (Real World)?

Answered by ForumsContributor in
Accepted Answer

appStoreReceiptURL should not require recent or current authentication event. It's possible its because no app receipt was found. If you can reproduce it'd be great to get a sysdiagnose and screen recording. Can submit via http://feedbackassistant.apple.com and reply here with FB#

Here's the scenario–

  1. App downloaded via TestFlight
  2. appStoreReceiptURL is retrieved
  3. Checks if there is a receipt at that URL

------> 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.

FB#

App Store Receipt -- Username/Pass dialog popup
 
 
Q