Target a Specific Platform

When creating a cross-platform app, you may need to specify which platform you want to target. You do this by running a command to ensure that platform-specific files are installed from the Cordova repository into the correct folder in your project.

To target a specific platform

To target only one platform, run one of the following commands:

   ionic platform - add ios
   ionic platform - add android

This adds plugins into the project.

You can check that the platforms folder now has been created, to check if this command has been successful.

results matching ""

    No results matching ""