Identify how users obtained your app
Important
The API will become available upon the release of single app distribution. We’re providing it here for your reference in the meantime.
App distribution in Setapp
Users can get your app in two ways:
- Setapp Membership
- Single app distribution — an individual purchase (one-time or subscription)
Knowing how users get your app helps you adjust features and improve your business model.
Use the API to check app distribution
Setapp provides an API to check how a user obtained your app. This works only in Setapp version 3.44.0 and newer. Older versions do not support this feature.
See an example of the API usage:
SetappManager.shared.requestPurchaseType { result in
switch result {
case let .success(purchaseType):
// Retrieved purchase type.
print(purchaseType)
case let .failure(error):
// Request failed. See error details.
print(error)
}
}
purchaseType
:
membership
— The user subscribed to your app via Setapp Membership.singleApp
— The user bought your app individually (one-time or subscription).
Use this API to track purchases and optimize your app.
Updated 21 days ago