Prerequisites
- Access to the PNLight dashboard.
- Your app bundle ID.
- An app build that can install a native iOS dependency.
Create a project
In the dashboard, create a project for your app. Enter the app name, bundle ID and App Store ID.
Copy the SDK token
Open Integration and copy the project SDK token. The SDK token connects app events to this project.
Install the SDK
Add the SDK for your app stack: Swift, React Native, or Flutter.
Initialize PNLight
Call the SDK initialization method during app startup before you send attribution or request Remote UI.
Send attribution when available
If you use AppsFlyer or another attribution provider, send attribution data through the SDK after the provider returns conversion data.
Request Remote UI
On the first app launch, wait 4-5 seconds after AppsFlyer initialization when attribution is required, then request Remote UI with
RemoteUiView or getUIConfig. The SDK also waits for attribution internally when attributionRequired is true.