Technical Resources & Guides

Developer Hub

Complete implementation guides, SDK documentation, and code examples to integrate Lucky.Pro seamlessly into your mobile applications

Implementation Workflow

Follow these steps to get your attribution tracking up and running

1

Initialize Project

Set up your account and configure your application settings in our dashboard

2

Obtain Credentials

Generate secure API keys and configure authentication for your mobile app

3

Integrate SDK

Install our native SDK and implement attribution tracking in your codebase

4

Deploy & Monitor

Launch your implementation and track attribution metrics in real-time

Choose Your Platform

Select your development platform to access tailored documentation and resources

iOS Integration

Native Swift and Objective-C support

Universal Links Support

Seamless deep linking with iOS Universal Links for improved user experience

App Store Redirects

Automatic fallback to App Store when your app is not installed

Custom URL Schemes

Flexible custom URL scheme handling for legacy app versions

Swift SDK Setup

// 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+

View on GitHub