Deeplinking
let delegate: BatchDeeplinkDelegate
// deeplinkDelegate is a class property of the Batch class
BatchSDK.deeplinkDelegate = delegate
// Then make your delegate implement the only function from the BatchDeeplinkDelegate protocol
func openBatchDeeplink(_ deeplink: String)id<BatchDeeplinkDelegate> delegate;
// deeplinkDelegate is a class property of the Batch class
BatchSDK.deeplinkDelegate = delegate;
// Then make your delegate implement the only method from the BatchDeeplinkDelegate protocol
- (void)openBatchDeeplink:(nonnull NSString*)deeplink;Universal links
class AppDelegate: UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
BatchSDK.associatedDomains = ["example.com", "www.example.com"]
// ...
}
}@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[BatchSDK setAssociatedDomains:@[@"example.com", @"www.example.com"]];
// ...
}Custom URL schemes
Last updated

