OTP verification for android application or Website.

OTP is verification is very Simple concept when you know the overall architecture it is going to be easier.

Few things that you need to understand in order to complete the process of OTP verification.

1.OTP Scripts should be run on Servers it can not execute on localhost.

2.There are so many Gateway for SMS choose any for trial and go ahead with it for this tutorial i am going to use TextLocal they give 10 transactional SMS for Testing/Demo purpose.

Architecture for OTP verification.

 

AndroidManifest.xml

<?xml version=”1.0″ encoding=”utf-8″?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”tech.drop.cj46.otpverification”>

<uses-permission android:name=”android.permission.INTERNET” />

<application
android:allowBackup=”true”
android:icon=”@mipmap/ic_launcher”
android:label=”@string/app_name”
android:supportsRtl=”true”
android:theme=”@style/AppTheme”>
<activity android:name=”.MainActivity”>
<intent-filter>
<action android:name=”android.intent.action.MAIN” />

<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
<activity android:name=”.Done”></activity>
</application>

</manifest>