Install PNLight in the app so it can identify users, check purchases, send attribution and events, and request server-driven UI configs.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.
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.
Recommended integration order
Confirm user identity
Read the SDK user ID and use it consistently with purchase and attribution flows.