Adjust’s link shortener solution converts long, complex links into cleaner, shorter ones. These shortened links keep their deep link and campaign information and route users to the app store if they don’t have your app installed.
Use the method described in this section to resolve short links to their original form.
Set up the Adjust SDK to resolve short links
Call the processAndResolveDeeplink
method to resolve a short Adjust link URL that opens your app via deep linking.
local adjust = require "plugin.adjust"
adjustDeeplink = {}adjustDeeplink.deeplink = "your-deep-link"
adjust.processAndResolveDeeplink(adjustDeeplink, function(resolvedLink) print("Resolved link: " .. resolvedLink.message)end)
If the link you pass to processAndResolveDeeplink
was shortened, resolvedLink
returns the expanded original link. If the link you pass wasn’t shortened, resolvedLink
simply returns the same link you provided.