If a campaign launch fails to raise a paywall, these are potential error types which are returned via an optional callback provided by NamiCampaignManager.launch
.
@objc enum LaunchCampaignError : Int {
case DEFAULT_CAMPAIGN_NOT_FOUND = 0
case LABELED_CAMPAIGN_NOT_FOUND = 1
case CAMPAIGN_DATA_NOT_FOUND = 2
case PAYWALL_ALREADY_DISPLAYED = 3
case SDK_NOT_INITIALIZED = 4
case PAYWALL_COULD_NOT_DISPLAY = 5
case URL_CAMPAIGN_NOT_FOUND = 6
case PRODUCT_DATA_NOT_FOUND = 7
case PRODUCT_GROUPS_NOT_FOUND = 8
}
enum class LaunchCampaignError : NamiError {
SDK_NOT_INITIALIZED,
DEFAULT_CAMPAIGN_NOT_FOUND,
LABELED_CAMPAIGN_NOT_FOUND,
PAYWALL_ALREADY_DISPLAYED,
CAMPAIGN_DATA_NOT_FOUND
}
enum LaunchCampaignError {
SDK_NOT_INITIALIZED,
DEFAULT_CAMPAIGN_NOT_FOUND,
LABELED_CAMPAIGN_NOT_FOUND,
PAYWALL_ALREADY_DISPLAYED,
CAMPAIGN_DATA_NOT_FOUND
}
export enum LaunchCampaignError {
DEFAULT_CAMPAIGN_NOT_FOUND = 0,
LABELED_CAMPAIGN_NOT_FOUND = 1,
CAMPAIGN_DATA_NOT_FOUND = 2,
PAYWALL_ALREADY_DISPLAYED = 3,
SDK_NOT_INITIALIZED = 4,
}
public enum LaunchCampaignError
{
DefaultCampaignNotFound,
LabeledCampaignNotFound,
CampaignDataNotFound,
PaywallAlreadyDisplayed,
SDKNotInitialized
}
SDK_NOT_INITIALIZED
- SDK must be initialized via [Nami.configure] before launching a campaignDEFAULT_CAMPAIGN_NOT_FOUND
- No live default campaign could be launched.LABELED_CAMPAIGN_NOT_FOUND
- No live campaign could be launched for the requested label.PAYWALL_ALREADY_DISPLAYED
- Cannot launch a campaign, because a paywall is currently on screenCAMPAIGN_DATA_NOT_FOUND
- No campaign foundPAYWALL_COULD_NOT_DISPLAY
- Could not display the paywallURL_CAMPAIGN_NOT_FOUND
- No live campaign for this deeplink URL was foundPRODUCT_DATA_NOT_FOUND
- No product data could be loaded from the app storePRODUCT_GROUPS_NOT_FOUND
- Product groups passed into launch don't match what paywall expects
See Campaign Troubleshooting for more info.