SDK Implementation
The only required steps to get started with Purchasely
Configuration
import Purchasely
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Purchasely.start(withAPIKey: "API_KEY,
appUserId: nil,
runningMode: .full,
eventDelegate: nil,
logLevel: .debug) { (success, error) in
print(success)
}
return true
}#import <Purchasely/Purchasely-Swift.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[Purchasely startWithAPIKey:@"API_KEY"
appUserId:@"USER_ID"
runningMode: PLYRunningModeFull
eventDelegate:nil
uiDelegate:nil
paywallActionsInterceptor:nil
logLevel: LogLevelInfo
initialized: nil];
return YES;
}Display a placement
Unlock content
Last updated