Kotlin
Introduction
In this tutorial, you will learn how to create an Android application using Kotlin and the Vonage Android Client SDK, and then write the code to receive a phone call to your Android app from a phone. The source code is available on Github.
Two parts are needed to achieve this:
- An Android application that will receive the voice call using the Client SDK.
- A publicly accessible URL that serves instructions on how to handle the call. To accomplish this, you will create a webhook server using Node.js, Express and localtunnel.
Completed project
If you would like to follow along without building the app yourself, the completed project is available on Github - please see the phone-to-app-kotlin folder.
This tutorial uses com.vonage:client-sdk-voice version 1.2.1 and targets Android SDK version 34
Receiving a phone call in-app
You receive a call from a phone to your app
手順
1
Introduction to this task2
Prerequisites3
Create a webhook server4
Create a Vonage Application5
Buy a Vonage number6
Link a Vonage number7
Create a User8
Generate a JWT9
Create an Android project10
Add permissions11
Building the interface12
Initialize the client13
Manage the call14
What's next?