Repository navigation
3.3.0
BTXClientKit 3.3.0
In-app campaigns
- Show targeted announcements as native cards or banners with HTTPS link or
Help Center actions. Enable.inAppCampaignsin your SDK configuration. - Control when campaigns can appear with
BTX.inAppCampaigns.setPresentationReady(_:). A signed-in customer is required.
The SDK waits two seconds after readiness and attempts at most one campaign per
cold launch. Setting readiness tofalsecancels pending presentation and
dismisses visible campaigns. - Match your app's appearance with
BTXInAppCampaignOptions(theme:). Campaigns
inherit the Messenger theme by default and support GIF artwork with Reduce
Motion handling. - Paused campaigns retain their queue position when resumed. Content edits apply
to pending deliveries; content already reserved for display stays unchanged.
Changes that invalidate pending content take effect on a later launch. - Campaign interactions are saved across restarts and sent when connectivity is
available. An internet connection is required to display a campaign. - Preview sample cards and banners on iOS with
BTX.inAppCampaigns.preview(isBanner:title:body:imageURL:)without sending a
campaign or recording interactions.