bug: Successive Calls to signInWithPhoneNumber or linkWithPhoneNumber Fail Without any Error Output #724
Labels
bug/fix
Something isn't working
needs: triage
package: authentication
platform: android
Android platform
Plugin(s)
Version
6.1.0
Platform(s)
Current behavior
If I make successive calls to
signInWithPhoneNumber
orlinkWithPhoneNumber
using the same phone number, it silently fails. ThePhoneVerificationFailedEvent
event does not fire, neither does thePhoneCodeSentEvent
.If I wait some amount of time between calls, it succeeds. 30 second interval fails, 60 second interval succeeds.
iOS always succeeds without any interval.
Expected behavior
The
PhoneCodeSentEvent
event fires or thePhoneVerificationFailedEvent
event fires.Reproduction
https://github.com/robingenz/capacitor-firebase-authentication-demo
Steps to reproduce
signInWithPhoneNumber
method successively to resend the verification text repeatedlyOther information
This seems to be potentially a bug in the underlying firebase android sdk. I assume the
verifyPhoneNumber
implementation is pretty straightforward to bubble up events. I can try to submit a bug there instead if that's the case.Capacitor doctor
$ npx cap doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: 6.1.1
@capacitor/core: 6.1.1
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
[success] iOS looking great! 👌
[success] Android looking great! 👌
Before submitting
The text was updated successfully, but these errors were encountered: