{"_id":"5807c3f9ad246319004d8869","parentDoc":null,"__v":0,"user":"54861b9f3681d914006992a4","project":"54861bb654b3ce0b00367292","category":{"_id":"57b96d6b1d08500e00bf81d3","project":"54861bb654b3ce0b00367292","version":"57b96d6b1d08500e00bf81d1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-08T21:55:25.679Z","from_sync":false,"order":1,"slug":"1-setup","title":"iOS / App Triggers"},"version":{"_id":"57b96d6b1d08500e00bf81d1","__v":7,"project":"54861bb654b3ce0b00367292","createdAt":"2016-08-21T08:59:23.326Z","releaseDate":"2016-08-21T08:59:23.326Z","categories":["57b96d6b1d08500e00bf81d2","57b96d6b1d08500e00bf81d3","57b96d6b1d08500e00bf81d4","57b96d6b1d08500e00bf81d5","57b96d6b1d08500e00bf81d6","57b96d6b1d08500e00bf81d7","57b96d6b1d08500e00bf81d8","57b96d6b1d08500e00bf81d9","57b96d6b1d08500e00bf81da","57b96d6b1d08500e00bf81db","57b96d6b1d08500e00bf81dc","57b97748306b9b0e001dd53f","57d12c6c1227b40e0044908a","57d51ad68191880e008bb51b","57d52b5cf350090e00fe073e","57d5468a17b492170053a3f0","57df9df05927cb0e002bce1e"],"is_deprecated":true,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"4.0.0","version":"4.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-19T19:05:29.340Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":25,"body":"One of Elasticode's main advantages is enabling you to easily export an experience. The experience will go from your dashboard, through the project, into your Xcode project and run it live.\nThis process is referred to as the \"default state\".\n\nHow does it work?\nIt's relevant for every moment, meaning a moment or an onboarding\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step #1\"\n}\n[/block]\nMake sure that the experience screens are exactly as you wish before you export them. If needed, revise and test. \nYou've created an experience, now it's time to revise and test\n1. Run it on your device.\n2. Test on all other devices. Elasticode's adjusting capability allows you to tweak your app on different devices (compared to iPhone 6).\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/6Lo1KFiPQ6ePfI2ntuOe_Screen%20Shot%202015-12-02%20at%203.24.38%20PM.png\",\n        \"Screen Shot 2015-12-02 at 3.24.38 PM.png\",\n        \"171\",\n        \"102\",\n        \"#74acdc\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step #2\"\n}\n[/block]\nUnder \"settings\", look for \"Export\" section, and click the \"Create zip\" button.\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step #3\"\n}\n[/block]\nAfter exporting the experience it should be ready for download.\n\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step #4\"\n}\n[/block]\nDrag the exported experience into your project.\nDon't forget to add it to your \"Target\"\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/nKbIvK18ShKmXbqe1x2v_Untitled51.gif\",\n        \"Untitled51.gif\",\n        \"1440\",\n        \"767\",\n        \"#396191\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Run once in \\\"Development\\\" mode\",\n  \"body\": \"After the export, you will need to run the project at least once, in development mode\"\n}\n[/block]\nLearn more about development mode [here](doc:15-debug-mode) \n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"You're all good!\",\n  \"body\": \"You now have a local [offline] experience on your device. The experience will apply in specific scenarios, including offline.\"\n}\n[/block]","excerpt":"How to add a local copy of an experience","slug":"export-an-experience","type":"basic","title":"Export an experience"}

Export an experience

How to add a local copy of an experience

One of Elasticode's main advantages is enabling you to easily export an experience. The experience will go from your dashboard, through the project, into your Xcode project and run it live. This process is referred to as the "default state". How does it work? It's relevant for every moment, meaning a moment or an onboarding [block:api-header] { "type": "basic", "title": "Step #1" } [/block] Make sure that the experience screens are exactly as you wish before you export them. If needed, revise and test. You've created an experience, now it's time to revise and test 1. Run it on your device. 2. Test on all other devices. Elasticode's adjusting capability allows you to tweak your app on different devices (compared to iPhone 6). [block:image] { "images": [ { "image": [ "https://files.readme.io/6Lo1KFiPQ6ePfI2ntuOe_Screen%20Shot%202015-12-02%20at%203.24.38%20PM.png", "Screen Shot 2015-12-02 at 3.24.38 PM.png", "171", "102", "#74acdc", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Step #2" } [/block] Under "settings", look for "Export" section, and click the "Create zip" button. [block:api-header] { "type": "basic", "title": "Step #3" } [/block] After exporting the experience it should be ready for download. [block:api-header] { "type": "basic", "title": "Step #4" } [/block] Drag the exported experience into your project. Don't forget to add it to your "Target" [block:image] { "images": [ { "image": [ "https://files.readme.io/nKbIvK18ShKmXbqe1x2v_Untitled51.gif", "Untitled51.gif", "1440", "767", "#396191", "" ] } ] } [/block] [block:callout] { "type": "info", "title": "Run once in \"Development\" mode", "body": "After the export, you will need to run the project at least once, in development mode" } [/block] Learn more about development mode [here](doc:15-debug-mode) [block:callout] { "type": "success", "title": "You're all good!", "body": "You now have a local [offline] experience on your device. The experience will apply in specific scenarios, including offline." } [/block]