These docs are for v1.0. Click to read the latest docs for v2.0.

Initialise Smartech SDK

  1. Import Smartech SDK in AppDelegate.m or AppDelegate class.
#import <NetCorePush/NetCorePush.h>
import NetCorePush
  1. Call method to initialise Smartech SDK in didFinishLaunchingWithOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    //...
	[[Smartech sharedInstance] initSDKWithDelegate:self withLaunchOptions:launchOptions];
    //...
    return YES;
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    //...
	Smartech.sharedInstance().initSDK(with: self, withLaunchOptions: launchOptions)
    //...
    return true
}