AT Internet
github "BatchLabs/Batch-iOS-atinternet-dispatcher"pod 'BatchATInternetDispatcher'import BatchATInternetDispatcher
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
BatchEventDispatcher.add(BatchATInternetDispatcher.instance())
[...]
BatchSDK.start(withAPIKey: "YOUR_API_KEY")
return true
}
}
// MYAppDelegate.h
@interface MYAppDelegate : UIResponder <UIApplicationDelegate>
[...]
@end
// MYAppDelegate.m
@import BatchATInternetDispatcher;
@implementation MYAppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[BatchEventDispatcher addDispatcher:[BatchATInternetDispatcher instance]];
[...]
[BatchSDK startWithAPIKey:@"MY_API_KEY"];
return YES;
}
@endLast updated

