Platforms to show: All Mac Windows Linux Cross-Platform

The module StoreKit2MBS

module StoreKit2MBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
module StoreKit MBS Swift Plugin 25.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The module for the StoreKit 2 framework in Swift.
Example
// on app start ask for products, updates and current entitlements
StoreKit2MBS.QueryProducts Array("test1"), AddressOf QueryProductsCompleted
StoreKit2MBS.SetUpdates AddressOf updatesReceived
StoreKit2MBS.CurrentEntitlements AddressOf CurrentEntitlementsCompleted

Due to bridging between C++ and Swift, we pass content of classes as Dictionaries, so we don't need to bridge each property and copy over data efficiently.

Support In-App Purchases and interactions with the App Store.

Use the StoreKit framework to provide the following features and services for your apps and In-App Purchases:

  • In-App Purchase. Offer and promote In-App Purchases for content and services.
  • App transaction. Verify a customer’s app purchase with an App Store-signed transaction.
  • Reviews. Request App Store reviews and ratings from your customers.

Most functions require macOS 12, iOS 15 or newer.
For a lot of things, we have additional properties in dictionaries for newer OS versions.

App Store Environments

Constant Value Description
AppStoreEnvironmentProduction "Production" A value that indicates the production server environment.
AppStoreEnvironmentSandbox "Sandbox" A value that indicates the sandbox server environment.
AppStoreEnvironmentXcode "Xcode" A value that indicates the StoreKit Testing in Xcode environment.

Blog Entries

Release notes

  • Version 26.1
    • Fixed Transaction function in StoreKit2MBS module.
  • Version 26.0
  • Version 25.5
    • Added ShowManageSubscriptions methods to StoreKit2MBS class.
  • Version 25.4
    • Added StoreKit2MBS module for StoreKit 2 framework from Apple.

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


The biggest plugin in space...