The OneLink Developer Hub

Welcome to the OneLink developer hub. You'll find comprehensive guides and documentation to help you start working with OneLink as quickly as possible, as well as support if you get stuck. Let's jump right in!

App Clip SDK integration

The developer routes the user to the correct activity using the invocation URL (the QR code, NFC tag, etc. that invokes the App Clip).

To add the SDK to the App Clip and route the user:

  1. Add the SDK to your App Clip
  2. Retrieve your dev key
  3. Configure the SDK in app delegate
  4. Initialize the SDK
  5. Add support for scene delegate
  6. In the Information Property List (info.plist file), add the following row with the key and value as detailed in the following table.

Key

Type

Value

AppsFlyerAppClip

Boolean

1

  1. Add the following code to sceneDelegate:
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
        
    // Must for AppsFlyer attrib
    AppsFlyerLib.shared().continue(userActivity, restorationHandler: nil)
}
    
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        
    guard let _ = (scene as? UIWindowScene) else { return }
        
    if let userActivity = connectionOptions.userActivities.first {
       self.scene(scene, continue: userActivity)
    }
    return
}

⇲ Github links: Swift

Updated 2 months ago


App Clip SDK integration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.