AppDistributor
Options that describe the marketplace from which the app installs.
Declaration
enum AppDistributorMentioned in
Overview
Apps on alternative app marketplaces need to use APIs that vary from apps on the App Store. Specifically, use:
AdAttributionKit for ads.
An e-commerce solution other than the App Store’s In-App Purchase system.
A social gaming network other than Game Center unless your app is also on the App Store.
Background Assets to download large files in the background rather than On Demand Resources.
To observe API differences, check the value of the app distributor’s static (current) property to determine the installation source:
App distributor case | Installation source |
|---|---|
The App Store | |
TestFlight | |
Alternative app marketplace; the argument | |
The developer’s website | |
Enterprise or education developer programs |
API availability varies depending on the source, so your app needs to check the current source at each launch — not just at the first launch — and adjust the APIs it uses accordingly.
In addition, for apps that aren’t marketplaces, use eligibilityRegion to determine if an Apple Account is signed in that has a region eligible for transaction reporting.
For more information, see Distributing your app on an alternative app marketplace.
Topics
Enumeration Cases
AppDistributor.appStoreAppDistributor.marketplace(_:)AppDistributor.otherAppDistributor.testFlightAppDistributor.web