Create a Native Configuration

Contents

Note: This feature is only available on our Growth plans and above.

Native Configurations allow you to easily modify common configuration values that can change between different environments (development, production, staging, etc.) so you don't need to use extra logic or manually commit them to version control. Native configurations can be attached to any Package build or Automation.

You can use native configs to:

In this part of the tutorial, we'll setup a native configuration for Development to:

  • Use a unique bundle id so that we can install both the development version of the app and the production version of the app on the same device
  • Change the App Name so we can tell the two installations apart once they're installed on the device
  • We'll also modify the Deploy Channel that the development version of the app listens to so that we can assign updates to that channel first to make sure they work (before we assign them to the production Channel)

Create a Native Configuration

To create a native config, go to the Package > Native Configs tab in the Appflow Dashboard sidebar and click New native config in the top right.

Next:

  • Name the configuration Development
  • Overwrite the unique bundle id with com.snapcats.demo.development
  • Overwrite the app name with Snapcats - Dev
  • Overwrite the deploy channel to be Development

Create Native Config

Add the Native Config to an Automation

To take full advantage of automating your development environment, you'll want to add the native config to the automation we created earlier.

In your Automations tab, click Edit from the Options icon on the right of your automation, select the configuration from the Native Config dropdown and click Save.

Add Native Config to Automation

Now your apps should automatically use a different bundle id, app name, and deploy channel between your development and production builds. This means you can install both your development and production applications on the same device and easily tell them apart! 🔥

Multiple Enviroments on a Device

Edit this page Updated 2019-01-30
Create an EnvironmentIonic Deploy