Closed phungxuanvuong closed 5 years ago
You should log this in the main repo not the docs repo - and follow the template there
In general I find that the onAuthChanged listener is the way to go. Try looking at the v5 docs from rnfirebase.io and take the auth example there. I use that in order to link phone numbers. I will say that in my local cell networks the SMS delivery is unreliable, specifically numbers that have been recently ported are problematic, and one carrier is very problematic - so even when you have it working you may find the SMS does not always come through
I have followed this guide (https://invertase.io/oss/react-native-firebase/quick-start/android-firebase-credentials) to setup Firebase SDK. It's ok.
This is gradle project leve:
And this is Gradle app leve:
And this is my code:
When I trigger Login, It didn't work