Node.js

Create a New Android Project

In this part, we will build a modern Android application that uses Jetpack Compose for the UI and integrates with the Vonage Verify API for 2FA (Two-Factor Authentication).

Overview

The application will follow this flow:

  1. User enters their phone number.
  2. App sends the phone number to the backend for verification.
  3. If Silent Authentication is successful, the user is verified.
  4. If it fails, the app prompts the user to enter the SMS code.
  5. The app submits the code for verification.
  6. The user is notified of the verification result.

Create the Android Project

  1. Open Android Studio.
  2. Click New Project → Empty Compose Activity.
  3. Set the following:
Name: Verify2FADemo
Language: Kotlin
Minimum SDK: API 24 (Android 5.0)
  1. Click Finish and wait for the project to build.

Getting Started with Silent Authentication

Silent Authentication takes quite a bit to understand. This tutorial shows you how to build an integration from scratch with Nodejs and Kotlin

以下の言語で利用可能:
Node.js
手順
1
Introduction
2
Before you start
3
Initialize the Project
4
Create a Simple Express Server
5
Setting up Vonage credentials
6
Add the Vonage Verify API
7
Testing the Backend
8
Create New Android Project
9
Set up app Android dependencies
10
Set up import and constants
11
Create Mobile UI
12
Networking to Backend
13
Testing Full Flow