Skip to content

nexmo-community/ionic-app-to-phone

Repository files navigation

ReactNative App to Phone

Nexmo is now known as Vonage

This is an Ionic project that uses the Client SDK to call a phone number.

Welcome to Vonage

If you're new to Vonage, you can sign up for a Vonage API account and get some free credit to get you started.

Running the project

Clone the project to your computer, using the terminal:

git clone git@github.com:nexmo-community/ionic-app-to-phone.git

Install the dependencies with npm:

npm install

Package the build files:

npm run build

Start the Ionic dev server:

ionic serve

After replacing the JWT in home.tsx you can now make a call from the web.

iOS:

Make sure your dev server is running or run it again with ionic serve --no-open. In a new terminal window expose your dev server to the internet with localtunnel, replacing SUBDOMAIN with a unique string:

npx localtunnel --port 8100 --subdomain=SUBDOMAIN

In a new terminal window navigate to your project directory and run the iOS project with this command, where SUBDOMAIN is the same string from above:

ionic capacitor run ios -l --external --livereload-url=https://SUBDOMAIN.loca.lt

Once this is done, will open Xcode where you can build and run (CMD + R) the project.

Android:

Make sure your dev server is running or run it again with ionic serve --no-open. In a new terminal window expose your dev server to the internet with localtunnel, replacing SUBDOMAIN with a unique string:

npx localtunnel --port 8100 --subdomain=SUBDOMAIN

In a new terminal window navigate to your project directory and run the iOS project with this command, where SUBDOMAIN is the same string from above:

ionic capacitor run android -l --external --livereload-url=https://SUBDOMAIN.loca.lt

Once this is done, will open Android Studio where you can build and run (CTRL + R) the project.

Getting Help

We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:

Further Reading