Initialise Smartech SDK
- Import Smartech SDK in AppDelegate.m or AppDelegate class.
#import <NetCorePush/NetCorePush.h>
import NetCorePush
- 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
}
Updated over 4 years ago