Link resolution
public static void resolveLink(final String url, final String[] resolveUrlSuffixArray, final AdjustLinkResolutionCallback adjustLinkResolutionCallback)Some Email Service Providers (ESPs) use their own custom domains for marketing campaigns. If you need to measure clicks through a custom domain, you need to set the SDK up to resolve the link. To do this, call the resolveLink method of the AdjustLinkResolution class. The Adjust SDK will then follow the custom link and resolve it when opening the deep link. This ensures that you record the interaction with your email measurement campaign.
The resolveLinkWithUrl method takes the following arguments:
url(String): the deep link that opened the application.resolveUrlSuffixArray(String[]): the custom domains of the configured campaigns that need to be resolved.adjustLinkResolutionCallback(AdjustLinkResolutionCallback): the callback that returns the final URL.
The method checks the deep link against the domains in the resolveUrlSuffixArray. If it doesn’t find any matches, it forwards the deep link URL as is. If it does find a match, it attempts to resolve the link and return the resulting deep link. It then stores this in the callback parameter.
You can use the returned deep link to reattribute your user. To do this, pass the deep link to the Adjust.appWillOpenUrl method.