iOS Adding Code Blocks in Editor without "Edit Mode"
How can I add a code block in the Experiement Editor without putting the App in "Edit Mode". Ideally, I should be able to provide a key for a code block and a key for each block I want invoked in the expirment in the editor without going into that mode. Otherwise I'm confused how I can provide a code block for my App Store release without allowing that build to be put in "Edit Mode" as well which I don't want to do.
I would like to rapidly test my experiment in simulator by restarting the App and making sure that the percentage of the view I want loaded looks like it's being loaded at the appropriate rate but the behavior I'm seeing isn't lined up with what I put in the experiment unless I'm in "Edit Mode" or "Preview Mode".
Also, I didn't see it in the documentation but is the code that executes the code block in the iOS SDK synchronous?
@jwilliams-handy Thanks for the product feedback! Unfortunately, you will need to put the app into edit mode in order to set up experiments that make modifications to the code block. I will definitely give pass this product feature request to our engineering team but will likely not be a feature that we will be able to build in the short term due to other priorities.
For your other questions -
Code blocks are executed synchronously.
There are 3 modes that the app can be run in, and "Normal Mode" should be used to make sure the percentage a view is loading at the appropriate rate. To test that the percentage traffic allocation works as expected, you will want to run the app in Normal mode (which is how your users will see your experiments) You will be able to see traffic allocation work as expected by deleting the app and counting as a new user. Edit Mode is used to make changes to the app, and Preview Mode is used to see a specific variation.
Hope this helps!
I find that many of my tests on mobile involve code blocks. I might suggest an analysis to see if other customers have a similar experience and what the ratio to code block usage vs. live UI editing is.