This is an Ionic project that uses the Client SDK to call a phone number.
If you're new to Vonage, you can sign up for a Vonage API account and get some free credit to get you started.
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.
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.
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.
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:
- Open an issue on this repository
- Tweet at us! We're @VonageDev on Twitter
- Or join the Vonage Developer Community Slack
- Check out the Developer Documentation at https://developer.nexmo.com