Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.pnlight.app/llms.txt

Use this file to discover all available pages before exploring further.

This guide takes you from an empty project to a working SDK integration.

Prerequisites

  • Access to the PNLight dashboard.
  • Your app bundle ID.
  • App Store Connect access if you want PNLight to check purchases.
  • An app build that can install a native iOS dependency.
1

Create a project

In the dashboard, create a project for your app. Enter the app name, bundle ID and App Store ID.
2

Copy the SDK token

Open Settings and copy the project SDK token. The SDK token connects app events to this project.
3

Install the SDK

Add the SDK for your app stack: Swift, React Native, or Flutter.
4

Initialize PNLight

Call the SDK initialization method during app startup, before you check purchases or request server-driven UI.
5

Configure App Store credentials

Open Settings and add the issuer ID, App Store shared secret, and in-app purchase key. Use the notification URL shown in Settings when configuring App Store server notifications.
6

Send attribution when available

If you use AppsFlyer or another attribution provider, send attribution data through the SDK after the provider returns it.
7

Check dashboard data

Open Analytics, Customers, and Remote UI to confirm installs, purchases, and UI requests are arriving.
Use one PNLight project per app and environment that needs separate reporting. Do not reuse a production SDK token in development builds unless you want test events in production analytics.

Minimal SDK initialization

import PNLightSDK

await PNLightSDK.shared.initialize(apiKey: "pnlight_sdk_token")

Next steps