{"_id":"588861fc165af631008ee21f","githubsync":"","category":{"_id":"588861fa165af631008ee1b9","__v":0,"version":"588861fa165af631008ee1b8","project":"54861bb654b3ce0b00367292","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-22T15:19:16.310Z","from_sync":false,"order":0,"slug":"intigration","title":"iOS / Essentials KIt"},"parentDoc":null,"project":"54861bb654b3ce0b00367292","user":"54861b9f3681d914006992a4","version":{"_id":"588861fa165af631008ee1b8","__v":1,"project":"54861bb654b3ce0b00367292","createdAt":"2017-01-25T08:29:46.061Z","releaseDate":"2017-01-25T08:29:46.061Z","categories":["588861fa165af631008ee1b9","588861fa165af631008ee1ba","588861fa165af631008ee1bb","588861fa165af631008ee1bc","588861fa165af631008ee1bd","588861fa165af631008ee1be","588861fa165af631008ee1bf","588861fa165af631008ee1c0","588861fa165af631008ee1c1","588861fa165af631008ee1c2","588861fa165af631008ee1c3","588861fa165af631008ee1c4","588861fa165af631008ee1c5","588861fa165af631008ee1c6","588861fa165af631008ee1c7","588861fa165af631008ee1c8","588861fa165af631008ee1c9"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.0.0","version":"5.0"},"__v":0,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-12-09T11:59:00.145Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"never","params":[],"url":""},"isReference":false,"order":0,"body":"**1. Download & Add the SDK**\n1.1. Sign up to our service at https://mc.elasticode.com/signUp.php \n1.2. Download our latest SDK here: https://mc.elasticode.com/SDK.php\n1.3. Drag the Elasticode.framework into your Xcode project\n\n\n**2. Add the following libraries to your project:**\n * *AVFoundation.framework*\n * *Security.framework*\n * *SystemConfiguration.framework*\n[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"2.1 For SWiFT Users\",\n \"body\": \"Create a bridging header: (to support Objective-C in swift project)\\n\\n1. Create a dummy Objective-C object file (e.g., dummyFile.m) in your project.\\n2. Xcode will ask you whether you want to create a bridging header, click \\\"Yes\\\".\\n(There have been settings changes in the project file, as well, to get Swift to look to this new header for information) ***You can now delete dummyFile.m***\"\n}\n[/block]\n**3. importing...**\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"//in AppDelegate.h\\n#import <ElastiCode/ElastiCode.h>\",\n \"language\": \"objectivec\"\n },\n {\n \"code\": \"// In the bridging header file\\n#import <ElastiCode/ElastiCode.h>\",\n \"language\": \"swift\"\n }\n ]\n}\n[/block]\n**4. Finally, add the following code to your appDelegate (in method didFinishLaunchingWithOptions) ** \n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"[ElastiCode setAPIKey::::at:::\\\"<APIKey>\\\"]; \\n[ElastiCode setOnLaunchCompletionBlock:^(BOOL didAppear) {}];\\n[ElastiCode ready];\",\n \"language\": \"objectivec\"\n },\n {\n \"code\": \" ElastiCode.setAPIKey(\\\"<APIKey>\\\")\\n\\t\\tElastiCode.setOnLaunchCompletionBlock { (didAppear) in }\\n ElastiCode.ready()\",\n \"language\": \"swift\"\n }\n ]\n}\n[/block]\nCheck out how it looks in your appDelegate: [AppDelegate Example](doc:appdelegate-example) \n[block:api-header]\n{\n \"type\": \"basic\",\n \"title\": \"That's it!\"\n}\n[/block]\nYou are now good to run our <a href=\"http://helpdesk.elasticode.com/categories/1206-dynamic-onboarding\" target=\"_blank\">Dynamic onboarding</a> & <a href=\"http://helpdesk.elasticode.com/categories/1379-what-s-new\" target=\"_blank\">What's new</a> services\n[block:callout]\n{\n \"type\": \"success\",\n \"title\": \"Actions & Analytics\",\n \"body\": \"If you would like to provide more actions for buttons in your experiences or connect your experience to 3rd party analytics services, read about our [Extra setup (Optional)](doc:additional-kit)\"\n}\n[/block]\n\n[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"Interactive FAQ [Extra setup]\",\n \"body\": \"If you plan to use our \\\"interactive FAQ\\\" as part of the Essentials Kit, \\nplease notice it requires an additional setup. For more information: [click Here](doc:dynamic-faq)\"\n}\n[/block]","excerpt":"iOS / Essentials KIt: Basic setup","slug":"sdk-intro","type":"basic","title":"Basic setup"}
Basic setup
iOS / Essentials KIt: Basic setup