Platforms to show: All Mac Windows Linux Cross-Platform
Back to AppReceiptMBS class.
AppReceiptMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AppReceiptMBS.containsActiveAutoRenewableSubscriptionOfProductIdentifier(productIdentifier as string, d as date) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
productIdentifier: The identifier of the auto-renewable subscription.
date: The date in which the latest auto-renewable subscription should be active. If you are using the current date, you might not want to take it from the device in case the user has changed it.
Returns true if the latest auto-renewable subscription is active for the given date, false otherwise.
Auto-renewable subscription lapses are possible. If you are checking against the current date, you might want to deduct some time as tolerance.
If this method fails Apple recommends to refresh the receipt and try again once.
See also:
AppReceiptMBS.containsActiveAutoRenewableSubscriptionOfProductIdentifier(productIdentifier as string, d as dateTime) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
productIdentifier: The identifier of the auto-renewable subscription.
date: The date in which the latest auto-renewable subscription should be active. If you are using the current date, you might not want to take it from the device in case the user has changed it.
Returns true if the latest auto-renewable subscription is active for the given date, false otherwise.
Auto-renewable subscription lapses are possible. If you are checking against the current date, you might want to deduct some time as tolerance.
If this method fails Apple recommends to refresh the receipt and try again once.
See also:
AppReceiptMBS.containsInAppPurchaseOfProductIdentifier(productIdentifier as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
productIdentifier: The identifier of the product.
True if there is an in-app purchase for the given product, false otherwise.
AppReceiptMBS.inAppPurchases as AppReceiptIAPMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some examples using this method:
AppReceiptMBS.verifyReceiptHash as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | StoreKit | MBS MacCloud Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true if the hash contained in the receipt corresponds to the device's GUID, false otherwise.
The items on this page are in the following plugins: MBS MacCloud Plugin.