You can use the Adjust Android Extension for Adobe Experience SDK to send Adjust activity from apps that came preinstalled on a user’s device. This enables you to send information from users who didn’t download your app from a campaign.
You can send data from preinstalled apps to a predefined default link. When a user opens the app for the first time, the install session is associated with the default link token.
Reference
To set your default link token, call the setDefaultTracker
method of your AdjustAdobeExtensionConfig
instance with the following argument:
token
:NSString
-
Your alphanumeric Adjust link token.
Tutorial: Set a default link token
To set your default link token, you need to add the token to your AdjustAdobeExtensionConfig
instance. If you followed the integration guide, your App Delegate file should look something like this:
import UIKitimport AEPCoreimport AEPServicesimport AdjustAdobeExtension
@mainclass AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { MobileCore.setLogLevel(LogLevel.trace) let appState = application.applicationState
if let config = AdjustAdobeExtensionConfig(environment: ADJEnvironmentSandbox) { AdjustAdobeExtension.setConfiguration(config) }
MobileCore.registerExtensions([AdjustAdobeExtension.self]) { MobileCore.configureWith(appId: "{your_adobe_app_id}") if appState != .background { MobileCore.lifecycleStart(additionalContextData: nil) } } return true }
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { if let deeplink = ADJDeeplink(deeplink: url) { Adjust.processDeeplink(deeplink) } return true }
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { if userActivity.activityType == NSUserActivityTypeBrowsingWeb { if let incomingUrl = userActivity.webpageUrl { if let deeplink = ADJDeeplink(deeplink: incomingUrl) { Adjust.processDeeplink(deeplink) } } } return true }}
To set a default link token for preinstalled apps, pass the link token to the setDefaultTracker
method of the AdjustAdobeExtensionConfig
instance. When Adjust receives the install session information, it attributes the install to the default link.
In this example, the external device ID is set to abc123.
if let config = AdjustAdobeExtensionConfig(environment: ADJEnvironmentSandbox) { config.setDefaultTracker("abc123") AdjustAdobeExtension.setConfiguration(config)}