I need to know which version of the app the user first installed for some backwards compatibility. Is it possible to access this data?
According the Apple documentation I need this:
Original Application Version
The version of the app that was originally purchased.
ASN.1 Field Type 19
ASN.1 Field Value UTF8STRING
JSON Field Name original_application_version
JSON Field Value string
This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist file when the purchase was originally made.
In the sandbox environment, the value of this field is always “1.0”.
Receipts prior to June 20, 2013 omit this field. It is populated on all new receipts, regardless of OS version. If you need the field but it is missing, manually refresh the receipt using the SKReceiptRefreshRequest class.