Beta

Quickstart

Set up Nuxie, create a paywall with AI, and trigger it from your iOS app

PreviousNext

Quickstart

This guide gets you from zero to your first live paywall in minutes. The steps below are intentionally lightweight; production apps will add more nuance later.

Prerequisites

  • A Nuxie account and an API key.
  • An iOS app you can run in Debug.

1) Create your first paywall (with a prompt)

  1. Open the Nuxie studio and start a new paywall.
  2. Describe what you want: layout, copy, imagery, CTA, plans.
  3. Let AI generate the design; iterate by prompting (e.g., “bolder headline”, “2‑column feature list”, “annual plan emphasis”).
  4. Save a few variations you like.

Result: you have one or more paywalls saved to your workspace.

2) Publish to your Library

  • Pick a paywall variation and publish it to the Library.
  • Give it a stable identifier (e.g., paywall_summer_launch).
  • Optionally tag it for later (e.g., intro, promo, annual-push).

3) Build a campaign workflow

  • Create a new campaign and open the node‑based workflow editor.
  • Add an Event Trigger node for app_opened.
  • Add an optional Segment Check for your target audience.
  • Add a Show Flow action that references your library item.
  • Activate the campaign.

At this point, when the SDK sends app_opened, the workflow can decide to show your paywall.

4) Integrate the iOS SDK

swift
// AppDelegate.swift (simplified, UIKit)
import UIKit
import Nuxie
 
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
  func application(_ application: UIApplication,
                   didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    let config = NuxieConfiguration(apiKey: "NX_…")
    do { try NuxieSDK.shared.setup(with: config) } catch { print(error) }
    return true
  }
}
 
// Early in app flow
NuxieSDK.shared.track("app_opened")
 
// Optional: manually present a specific flow (paywall) for debugging
// try await NuxieSDK.shared.showFlow(with: "paywall_summer_launch")
bash
# Add via Swift Package Manager (illustrative)
# Xcode → File → Add Package Dependencies…
# Package URL: https://github.com/nuxieio/nuxie-ios

5) Verify

  • Run your app; open the console to watch SDK logs.
  • Trigger app_opened (cold launch). If your segment & campaign match, the paywall should appear.
  • If not visible, try manual present (see code above) to confirm the paywall renders, then check campaign/segment rules.

Next: wire up a few more events and try an A/B between two paywall variations.