---
title: Running the app in device
description: "It is better if you complete these steps before running the app  1.**Activating REST API ** ![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.35.37 PM-1024x572.png) Then copy the rest api key and secret which will show after generate on above. 2.**Configuring API in the app ** ![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.45.44 PM-1024x567.png) Change these keys.…"
url: "https://www.radiustheme.com/docs/zilly-woocommerce-app/docs/running-the-app-in-device/"
updated: "2025-03-07"
category: App Installation Preparation
---

# Running the app in device

It is better if you complete these steps before running the app 

1.**Activating REST API **

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.35.37 PM-1024x572.png)

Then copy the rest api key and secret which will show after generate on above.

2.**Configuring API in the app **

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.45.44 PM-1024x567.png)

Change these keys. You will get this file in **Project>lib>util>app_strings.dart** this directory.

3.**Change base url from lib>utils>app_strings.dart file**

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.50.21 PM-1024x567.png)

4.**Run the project on simulator**

If you want to run the project on a simulator then just select a device and click on run icon mark as below screenshot.

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-12.55.18 PM-1024x530.png)

5.**Run the project on Real Device Android**

Please turn on usb debugging on your android phone and connect with your computer using a usb cable.

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/turn-on-USB-Debugging-en-how-to-turn-on-USB-debugging-on-Samsung-device-Android-5.1-1024x523.jpg)

Then just select your device on android studio and click on run icon same way as we do for run on simulator.

5.**Run the project on IOS**

Before run the program on IOS you need to run a command for pod install on your project

Open your project terminal

type **cd ios** and press enter. It will move you on IOS Directory.

Then type **pod install** and hit enter. It will install all the necessary pod.

After that if you want back to your project directory from your IOS directory just type **cd ..** and hit enter.

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-1.00.04 PM-1024x524.png)

Then open your project with Xcode. Go to your project IOS directory and open the podfile then just click on Open ios/macos module in xcode. It will open IOS module on your xcode. Then just select a IOS Simulator and click on run icon on xcode. It will compile the program and you will able to see the output on your IOS Simulator.

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-3.19.40 PM-1024x419.png)

![](https://www.radiustheme.com/docs/zilly-woocommerce-app/wp-content/uploads/sites/18/2024/06/Screenshot-2024-11-07-at-3.29.29 PM-1024x662.png)

If you want to run this project on IOS real device then just connect your IOS phone with your mac via usb cable and then select your device on xcode> click on run >

Then program will compile and you will see output on your Iphone.

That's it all the way to compile the project perfectly.
