How to share my ionic app in Test Mode

Ok Guys,
I just developed this sample ionic app but i want to share it to my friends to test the app.
please, how do i go about it? what can i do?

Hi, great work building your app,

For the android version, run ionic cordova build android and this will generate an APK you can send to your friends for testing.

For iOS, you will need to run ionic cordova build ios, then open the project in XCode and compile to an iOS device plugged into your mac

Let me know if you need any other information.

1 Like

Thank you very much. but i am getting this error that says

Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.
[ERROR] An error occurred while running subprocess cordova.

Please what can i do? I dont have android studio installed yet.

Hi, follow Setiing up your Android Environment for Ionic that should help

You have to first set your enviroment variable as a name Android-Home and paste your android studio location as

set ANDROID_HOME=C:\ installation location \android-sdk

set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

then run the command
ionic cordova build android --device --prod

then find the location as

so find your apk and share with your contacts…

1 Like

Please i dont seem to understand you. can you send me a screenshot of how it should look like?
or probably how it is in the directory.