Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AppReceiptMBS.appVersion as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: The app’s version number.
Example:
// open a receipt
dim f as FolderItem = SpecialFolder.Desktop.Child("receipt")
dim r as AppReceiptMBS = AppReceiptMBS.receiptForFile(f)

// show value
MsgBox r.appVersion
Notes:
This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist.
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.bundleIdentifier as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: The bundle identifier.
Example:
// open a receipt
dim f as FolderItem = SpecialFolder.Desktop.Child("receipt")
dim r as AppReceiptMBS = AppReceiptMBS.receiptForFile(f)

// show value
MsgBox r.bundleIdentifier
Notes:
This corresponds to the value of CFBundleIdentifier in the Info.plist file.
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.bundleIdentifierData as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: The bundle identifier as data.
Notes:
The bundle identifier as data, as contained in the receipt. Used to verifiy the receipt's hash.
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.creationDate as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 15.3 Yes No No Yes, macOS only No
Function: The creation date of the receipt.
Notes: (Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.expirationDate as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: The date that the app receipt expires.
Notes:
Only for apps purchased through the Volume Purchase Program. If nil, the receipt does not expire. When validating a receipt, compare this date to the current date to determine whether the receipt is expired. Do not try to use this date to calculate any other information, such as the time remaining before expiration.
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.opaqueValue as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: An opaque value used as part of the SHA-1 hash.
Notes: (Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.originalAppVersion as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: The version of the app that was originally purchased.
Example:
// open a receipt
dim f as FolderItem = SpecialFolder.Desktop.Child("receipt")
dim r as AppReceiptMBS = AppReceiptMBS.receiptForFile(f)

// show value
MsgBox r.originalAppVersion
Notes:
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".
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.purchaseDate as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 15.3 Yes No No Yes, macOS only No
Function: Another date.
Notes:
Digging in a receipt we found this field and assume it is the original purchase date.
(Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.receiptHash as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 14.3 Yes No No Yes, macOS only No
Function: A SHA-1 hash, used to validate the receipt.
Notes: (Read only property)

Feedback, Comments & Corrections

AppReceiptMBS.transactionDate as Date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property StoreKit MBS MacCloud Plugin 15.3 Yes No No Yes, macOS only No
Function: Another date.
Notes:
Digging in a receipt we found this field and assume it is the transaction date.
(Read only property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCloud Plugin.




Links
MBS Xojo blog