Skip to content

Dashverse/whatsapp_zero_tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatsapp Zero Tap Flutter

Autofill OTPs using WhatsApp's Zero Tap for Android devices

API Reference

  • Initialize: wa = WhatsappZeroTap()

  • Future<bool> isWhatsAppInstalled(): Returns whether WhatsApp is installed on the device.

  • Future<bool> isWhatsAppOtpHandshakeSupported(): Checks if the current device supports WhatsApp OTP handshakes.

  • Future<String?> listenForOTP({required Duration timeout}): Initiates a zero-tap OTP fetch flow from WhatsApp. Throws a platform exception if OTP is not received within timeout.

Note: Call listenForOTP before sending the whatsapp message to avoid race conditions.

Demo:

example.mp4

About

OTP Autofill Using Whatsapp Zero Tap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published