Skip to main content

I’m working on an iOS app using the Amplitude SDK, and multiple developers are testing experiments. However, not all testers can access the Amplitude dashboard to change the assigned variants. To facilitate testing without using the dashboard, I’m looking for a way to override or manually set the variant for specific experiments directly on the client side.

Does the iOS SDK currently support something like this?

Hi Laura,

Thank you for writing in! My name is Audrey, and I am your Technical Support Agent here to help you.

Let me forward this question to our Experiment Engineering team and get back to you ASAP. Appreciate your patience!

Best,
Audrey


P.S. Checkout upcoming events and user meetups on our events page.
Hi Laura,

Thank you for your patience!

Our Engineering team has informed me that currently it is not possible to force a variant directly from the iOS app. However, if you are able to change the configuration options in your initialization code, then you can do this by either setting `initialVariants` or `initialFlags`. Here are our docs with more information on this: https://amplitude.com/docs/sdks/experiment-sdks/experiment-ios#configuration.

Hope this helps! Please let me know if you have any questions.

Best regards,
Audrey


P.S. Checkout upcoming events and user meetups on our events page.

Thanks for your response. Are there any plans to add this functionality to the SDK in the future?

Best,

Laura  


Hi Laura,

I don't believe there are plans as of now, but we do take customer feedback seriously. If you'd like, please submit a feature request via the help button at the top right corner on the UI (question mark icon) > Contact Us > Select 'Feature Request' > Submit Feedback. This will send your feedback to the Product team directly. I'd also be happy to submit one on your behalf if you'd like.

Best,
Audrey


P.S. Checkout upcoming events and user meetups on our events page.

Reply