Are you developing an apps with ionic and planning to deploy it on a real device ? Cool !
Here are some steps that you may follow to get it running on your device out of the box.
Here are some steps that you may follow to get it running on your device out of the box.
- Make sure that the Developer Option of your Phone is activated, if not here is a tutorial to help you out. http://www.greenbot.com/article/2457986/how-to-enable-developer-options-on-your-android-phone-or-tablet.html
- Connect your phone to the computer with a USB cable.
- Make sure your phone is open and not locked.
- Open the terminal and navigation to your main project directory. You should now see sometime like the below content. > cd HelloIonicProject
- Adding your current platform - if Android : > ionic platform add android
- Adding your current platform - if ios : > ionic platform add ios
- Now it is time to build our project on it. if android : > ionic build android
- Now it is time to build our project on it. if ios : > ionic build ios
- Your may do this, to copy all the files into the specified platform : > cordova prepare
- Finally run it for android : > ionic run android
- Finally run it for ios : > ionic run ios
No comments:
Post a Comment