For instructions on using AppsFlyer's Adobe Mobile SDK Extension please see: https://aep-sdks.gitbook.io/docs/getting-started/create-a-mobile-property
After adding the extension to the mobile property, please set the App ID and Dev Key fields and save the extension settings.
For more information on adding applications to the AppsFlyer dashboard see here
Information on adding the extension to xCode is available on the Launch dashboard.
All events that are invoked using the [ACPCore trackAction]
API are automatically tracked to the AppsFlyer Platform as in-app events; For example, calling this API:
[ACPCore trackAction:@"testAnalyticsAction" data:@{@"revenue":@"200",@"currency":@"USD"];
will result in a testAnalyticsAction
event tracked on the AppsFlyer Dashboard with a revenue of 200USD.
revenue
and currency
parameters are mapped to af_revenue
and af_currency
.
Registering for deferred deep link and deep link callbacks:
[AppsFlyerAdobeExtension registerCallbacks:^(NSDictionary *dictionary) {
NSLog(@"[AppsFlyerAdobeExtension] Received callback: %@", dictionary);
}];
Handling Errors:
[AppsFlyerAdobeExtension callbacksErrorHandler:^(NSError *error) {
NSLog(@"[AppsFlyerAdobeExtension] Error receivng callback: %@" , error);
}];
The returned map should contain a callback_type
key to distinguish between onConversionDataReceived
(deferred deep link) and onAppOpenAttribution
(deep link).
Tracking Universal Links using the AppsFlyerAdobeExtension requires the developer to pass the userActivity and restorationHandler to the extension:
- (BOOL) application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler {
[AppsFlyerAdobeExtension continueUserActivity:userActivity restorationHandler:restorationHandler];
return YES;
}
Tracking URL Types (Schemes) using the AppsFlyerAdobeExtension requires the developer to pass the url and options to the extension:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *) options {
[AppsFlyerAdobeExtension openURL:url options:options];
return YES;
}