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.

Install PNLight in the app so it can identify users, check purchases, send attribution and events, and request server-driven UI configs.

Supported SDKs

Swift

Native iOS apps. Requires iOS 13.0+ and Swift 5.7+.

React Native

React Native iOS apps. Package: @pnlight/sdk-react-native.

Flutter

Flutter iOS apps. Package: pnlight_sdk.

What the SDK does

  • Initializes PNLight with the project SDK token.
  • Creates or returns a stable user ID.
  • Checks purchases.
  • Sends custom events.
  • Sends attribution data from providers such as AppsFlyer.
  • Requests and renders server-driven UI.
The current public SDK packages are iOS-focused. If your app targets multiple platforms, gate PNLight calls so unsupported platforms do not execute iOS-only code.
1

Initialize the SDK

Call initialization once during app startup.
2

Confirm user identity

Read the SDK user ID and use it consistently with purchase and attribution flows.
3

Check purchases

Call the purchase check before granting paid access.
4

Send attribution

Send attribution data after your attribution provider returns it.
5

Add server-driven UI

Render a placement and handle custom actions from the returned UI.