LaunchDarkly Sample Xamarin Application
We've built 2 applications that demonstrates how LaunchDarkly's SDK works with both iOS and Android using the Xamarin platform. Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page.
- Make sure you have Visual Studio for Mac installed along with Xcode.
- Make sure you're in this directory.
LaunchDarkly.Xamarin.slnin Visual Studio for Mac.
- Copy the mobile key from your account settings page and the feature flag key(s) from your LaunchDarkly dashboard into the appropriate fields in your source code. For the iOS project, this is at the top of the
MainCollectionViewController.cs.For the Android project, this is at the top of the
MainActivity.csclass. Note that the mobile apps require the LaunchDarkly mobile key to be set in order to run.
- Select the platform you want to run on in Visual Studio's targeted device selector and press run.