Whatsapp based Phone number verification.Verify your phone number easily through whatsapp

Overview

WhatsappWhatsapp Based Login


Try this to implement fastest phone number verification system []
Verify your phone number through whatsapp android

linkedin LinkedIn
License API Profile

Before Proceeding Further

Please go to this link and follow the steps to setup server for whatsapp verification

Link to Server Repo

Now Let's Proceed Further

Gradle

Add the JitPack repo to your project's build.gradle file:

maven { url 'https: //jitpack.io' }

Add the dependency below to your module's build.gradle file:

dependencies {
	   implementation 'com.github.Piyusinha:WhatsappBasedLogin:v1.0.1'
	}

How to Use

WhatsAppBasedLogin supports both Kotlin and Java projects, so you can reference it by your language.

Create WhatsappLogin with Kotlin DSL

WaVerifySdk.WASdkBuilder(
	context,
	businessnumber,
        socketUrl )
        .callback(whatsappLoginCallback) \\ optional
        .message(message) \\ optional
	.jwtSecretKey(key) \\ required if you are not using our default key
        .build()

Here, whatsappLoginCallback is an interface that you need to define in your app where you would get the success or failure callbacks

Note : Use same businessnumber which you verify on Meta for Developers Portal

Default JWT secret key = "accesstokensecretaccesstokensecr" (lenght must be greater the 32 )

You can trigger the Whatsapp verification flow by calling the following method

GlobalScope.launch {
  WaVerifySdk.getInstance()?.verifyOtpService()
 }

Note: Socket Runs on Background Thread so calling this method require Coroutine Scope.

Implements Callback

val whatsappLoginCallback: WhatsappLoginCallback = object : WhatsappLoginCallback {
  override fun onWhatsAppLoginSuccess(success: WASuccessResponse?) {
      this@MainActivity.runOnUiThread({
          findViewById<TextView>(R.id.textView)?.text = success?.name
      })    
  }
  
  override fun onWhatsAppError(exception: Throwable) {
  
    }
} 

Callback coming from Background thread so it's important to pass it to main thread

Clearing SDK instance (Important)

override fun onDestroy() {
  super.onDestroy()
  WaVerifySdk.getInstance()?.onDestroy()
}

Note: It's important to Destory SDK instance beacause it's close the socket connection.

Check whatsapp present in User's device or not

You can check if the Whatsapp app is present on the user's device or not by using the following method

WaVerifySdk.getInstance().isUsable()

License

Copyright 2022 lucifer (Piyush Sinha)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
NamelessnessR is a vpn hub that combines a number of vpn protocols to provide a hub to a single vpn powerful to protect your privacy only.
NamelessnessR is a vpn hub that combines a number of vpn protocols to provide a hub to a single vpn powerful to protect your privacy only.

NamelessnessR Design concept The Design concept is designed using adobe xd basing of different ideas but mainly Anxray, V2rayNG and NamelessnetX with

NamelessnessR is a vpn hub that combines a number of vpn protocols to provide a hub to a single vpn powerful to protect your privacy only.
NamelessnessR is a vpn hub that combines a number of vpn protocols to provide a hub to a single vpn powerful to protect your privacy only.

namelessnexR Design concept The Design concept is designed using adobe xd basing of different ideas but mainly Anxray, V2rayNG and NamelessnetX with N

⏺ A simple android app to browse your phone call recordings
⏺ A simple android app to browse your phone call recordings

⏺ Reky A simple android app to browse your phone call recordings [Under Construction] ✅ TODO Support more file name formats 🏗 Built-with MVVM with Si

An Android app to watch anime on your phone without ads.
An Android app to watch anime on your phone without ads.

Anime X Stream An Android app to watch anime on your phone without ads. WARNING: THIS IS A BETA VERSION of application, THEREFORE YOU MAY ENCOUNTER BU

Find your ideal fitness partners according to your preferences and interact with them whenever you want! All this with no hassle, because there's FitMate! Take timed challenges updated daily, read blogs related to health, and be a part of numerous communities too! During covid times, partner with your FitMate to achieve your fitness goals at home.
WhatsApp Android App with almost all features completed

WhatsApp Android App with almost all features completed

Clone of real world Chatting application Whatsapp built on Android Studio and Firebase
Clone of real world Chatting application Whatsapp built on Android Studio and Firebase

Clone of real world Chatting application Whatsapp built on Android Studio and Firebase

Library dibuat untuk autentifikasi whatsapp di buat tim CAN Creative

wagos Library dibuat untuk autentifikasi whatsapp di buat tim CAN Creative. hany

A tiny Android app that can receive WhatsApp group message export files and parse message history stats.

A tiny Android app that can receive WhatsApp group message export files and parse message history stats.

Releases(v1.0.1)
  • v1.0.1(May 25, 2022)

    What's Changed

    • Whatapp Authorization Added by @Piyusinha in https://github.com/Piyusinha/WhatsappBasedLogin/pull/1
    • Added check Whatsapp is available on the device or not
    • Added JWT authorization between client and server

    New Contributors

    • @Piyusinha made their first contribution in https://github.com/Piyusinha/WhatsappBasedLogin/pull/1

    Full Changelog: https://github.com/Piyusinha/WhatsappBasedLogin/compare/v1.0.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(May 22, 2022)

Owner
MorningStar
Aspiring Software Developer 👾 | Open Source Contributor 🔥
MorningStar
WhatsApp-Clone - WhatsApp Clone With Kotlin

WhatsApp Clone this App is a follow up of a youtube Video by Btech follow the li

Oyero Abdullahi Surajudeen 0 Jan 27, 2022
Secret Codes is an Open Source application that allows you to browse through hidden codes of your Android phone.

####Secret Codes is an Open Source application that allows you to browse through hidden codes of your Android phone. This application will scan throug

Simon Marquis 251 Jan 6, 2023
A handy phone call manager with phonebook, number blocking and multi-SIM support

Simple Dialer A lightweight app for handling your calls, no matter where are you. Comes with a handy call log for easy call initiation. There is a qui

Simple Mobile Tools 443 Jan 6, 2023
SIMNumberSetter - A small Xposed module to set the SIM card's phone subscriber number

SIM Number Setter SIM Number Setter is a small Xposed module that invokes normal

Kieron Quinn 99 Dec 30, 2022
Candash - A simple Android app that turns your phone into an instrument cluster for your Tesla Model 3 and Y

What is CANdash? CANdash is an Android app that turns your Android device into a

Nick Nguyen 31 Nov 5, 2022
A news application through which you can learn and browse all the news that interests you by choosing the country and type of news with the ability to browse and add some news to your favorites

MY-NEWS-Android A news application through which you can learn and browse all the news that interests you by choosing the country and type of news wit

Mahmoud ELramady 0 Nov 11, 2021
This document will walk you through the steps for creating your Android app that runs a deep learning image classification model trained in Pocket AutoML and exported in TensorFlow Lite format

Pocket AutoML: Tutorial for Creating an Android App for Image Classification with Deep Learning Translations English (this document) Русский Overview

Evgeniy Mamchenko 15 Nov 22, 2022
Techbee e.U. 62 Jan 31, 2023
COVID-19 Check-in solution for store using a safe number based on MVVM model.

wave-in-listener English version : README_EN.md wave-in-listener 는 매장에 방문한 고객의 개인안심번호를 음파통신을 이용해 수신할 수 있는 앱입니다. 이 앱은 wave-in-speaker 앱과 함께 사용됩니다. wave

Euphony 14 Jul 25, 2022
COVID-19 Check-in solution using a safe number based on MVVM model.

wave-in-speaker wave-in-speaker는 방문하는 공간에 전자출입명부를 쉽게 남기도록 도와주는 앱이며 특히 코로나 바이러스 감염증(COVID-19) 기간동안 효과적으로 사용가능합니다. 이 앱을 사용하면 QR코드 대신 음파 통신으로 체크인할 수 있습니다

Euphony 15 Oct 15, 2022