Complete implementation guides, SDK documentation, and code examples to integrate Lucky.Pro seamlessly into your mobile applications
Follow these steps to get your attribution tracking up and running
Set up your account and configure your application settings in our dashboard
Generate secure API keys and configure authentication for your mobile app
Install our native SDK and implement attribution tracking in your codebase
Launch your implementation and track attribution metrics in real-time
Select your development platform to access tailored documentation and resources
Native Swift and Objective-C support
Seamless deep linking with iOS Universal Links for improved user experience
Automatic fallback to App Store when your app is not installed
Flexible custom URL scheme handling for legacy app versions
// Initialize SDK
import DeepOneSDK
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Configure DeepOne SDK (reads API keys from Info.plist)
DeepOne.shared.configure(
launchOptions: launchOptions,
developmentMode: false // Set to true for testing with test API key
) { attributionData, error in
if let attribution = attributionData {
// Handle initial attribution and route user to appropriate screen
print("App launched with attribution: \(attribution.marketingCampaign ?? "Direct")")
// Route user based on deep link path
if let routePath = attribution.routePath {
self.routeToScreen(path: routePath)
}
}
}
return true
}
// Helper method to route user to appropriate screen based on deep link path
private func routeToScreen(path: String) {
DispatchQueue.main.async {
switch path {
case "/product":
// Navigate to product page
print("Routing to product page")
case "/profile":
// Navigate to user profile
print("Routing to profile page")
case "/offer":
// Navigate to special offer
print("Routing to offer page")
default:
// Navigate to home or handle unknown path
print("Routing to home page")
}
}
}
}
SDK Version
1.1.2
Platform
iOS 13.0+
Language
Swift 5.0+
Requirements
Xcode 12.0+, iOS 13.0+