How samyak2403/firebase-otp-verifaction works
This Android app takes a user from phone-number entry through Firebase phone verification, OTP entry or SMS auto-retrieval, and a post-verification screen. The main domain stages are sending and verifying the code; OTPReceiver is the internal SMS parsing layer. The README also documents resend and automatic retrieval. Source excerpts show these paths, but do not show an explicit request to start the SMS Retriever service, so that integration is not represented as a confirmed call.
Main entry points: OtpVerifyActivity.kt Verify OTP · OtpSendActivity.kt Send OTP · OTPReceiver.kt SMS Parser · MainActivity.kt Main Screen
Components 7
Phone Authentication
- Send OTP
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpSendActivity.kt - Verify OTP
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt
OTP Handling
- SMS Parser
app/src/main/java/com/samyak2403/firebaseotpverifaction/OTPReceiver.kt
App Screens
- Main Screen
app/src/main/java/com/samyak2403/firebaseotpverifaction/MainActivity.kt
Other components
- User
- Firebase Authentication
- SMS Retriever
Connections 11
- User → Send OTP: enters phone
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpSendActivity.kt - Send OTP → Firebase Authentication: requests code
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpSendActivity.kt - Firebase Authentication → Send OTP: returns verification ID
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpSendActivity.kt - Send OTP → Verify OTP: opens with ID
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpSendActivity.kt - User → Verify OTP: enters or resends
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt - Verify OTP → Firebase Authentication: verifies credential
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt - Firebase Authentication → Verify OTP: returns auth result
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt - Verify OTP → SMS Parser: registers receiver
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt - SMS Retriever → SMS Parser: delivers SMS event
- SMS Parser → Verify OTP: supplies parsed code
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt - Verify OTP → Main Screen: opens on success
app/src/main/java/com/samyak2403/firebaseotpverifaction/OtpVerifyActivity.kt