Receipt refreshing on macOS

Historitcall, to refresh a receipt on macOS an app had to exit with code 173 and let the OS do the refreshing. But since macOS 10.7 SKReceiptRefreshRequest is also available on the Mac. Can it be used as a complete replacement for refreshing receipts the old way?

Replies

In my experience, using SKReceiptRefreshRequest on macOS 10.12.5 resulted in a call to

request:didFailWithError:
, passing a
nil
error. I've filed rdar://33036598 asking for clarification on the use of SKReceiptRefreshRequest on macOS, and rdar://33035901 about nil being passed to a
nonnull
error parameter.