-
-
Notifications
You must be signed in to change notification settings - Fork 29
Installation with Objective C
soyombo edited this page May 19, 2020
·
9 revisions
1. Add "ENV['SWIFT_VERSION'] = '5'" on top of your podfile then add 'ErxesSdk' to your podfile and run pod install
use_modular_headers!
target '<Your Target Name>' do
pod 'ErxesSDK'
end
Don't forget to put use_modular_headers! at top of the Podfile in objective-c projects
- brandCode - generated unique code of your brand
- apiHost - erxes-api server url
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Erxes setupWithErxesApiUrl:@"erxesApiUrl" brandId:@"brandCode"];
return YES;
}
Just call this function inside your own trigger function
- (IBAction)btnClick:(id)sender {
[Erxes start];
}
If your application has already registered user provide info with this function