According to Firebase documentation (https://firebase.google.com/docs/auth/android/phone-auth#send-a-verification-code-to-the-users-phone), there is callback fo
Updated code
fun resendOTP(activity: Activity,mobileNo: String){
val options = PhoneAuthOptions.newBuilder(auth)
.setPhoneNumber(mobileNo) // Phone number to verify
.setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit
.setActivity(activity) // Activity (for callback binding)
.setCallbacks(callback) // OnVerificationStateChangedCallbacks
.setForceResendingToken(resendToken!!) // ForceResendingToken from callbacks
.build()
PhoneAuthProvider.verifyPhoneNumber(options)
}
For java see Github
Thanks to GGWP for link .