-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] Firebase Phone Auth Not Working - (React Native 0.76.8) RNFirebase Version 18.6.1 #7669
Comments
@mikehardy I've also encountered this after upgrading to 19, many users complaining that they cannot receive the SMS OTP on Androids. Probably unrelated with rn-firebase, this must be an upstream issue. |
@efstathiosntonas I also tried to create a new project but still nothing is working. Even the re-captcha is failing as well |
@Alreadywinner you might want to look into this: firebase/firebase-android-sdk#4973 You should use test phone numbers provided by firebase authentication and not real numbers in debug mode. more info about test numbers here: https://firebase.google.com/docs/auth/web/phone-auth#test-with-fictional-phone-numbers |
But what to do with the captcha I mean that should work right ? . And I have tried creating release apk of my app and then tried on real numbers the error was same |
Partially related to #7643 |
Yeah Looks like you facing the same error with expo CLI and I am using React Native CLI same error is in there. Cherry on top is allowing App intergrity is giving an error on Flutter Fire as well I just checked it out so there's something minor that we are missing or this clearly have something to do with Firebase itself |
Hey does someone have something ? |
Did you check if the sha fingerprints, you provided in Firebase Console, are in google-services.json? I'm randomly having this issue too, but my SHA is not in google-services.json and I think this might be the main issue. I'm on 18.3 of rn-firebase. |
Hello 馃憢, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
Has anyone fixed this yet? I have upgraded and started getting this issue. SMS is not being sent on iOS and Android either |
Nope nothing came up yet |
I have validated mmy SHA fingerprints a billion time and yes they are present in google-services.json but still I have no luck. If you were able to solve it then is it possible for you to share your example google-services.json so that I get idea what I'm missing @maciekstosio |
This is terrible advice, as you will then have a firebase-ios-sdk that does not have privacy manifests and you will not be able to deploy builds to Apple's App Store |
The same problem here, but I'm sure that there is something about the lib, I downgraded and worked, but I want to use it in the last version of course, but there is something in the actual version that is breaking the flow. |
Issue
So previously I set up my react native app using Firebase Auth with Email/Password enabled. Later on when I turned on Phone provider as well and deleted Email/Password I am stuck in the same error again and again. The error is :
So as the error says that maybe I entered wrong package name, SHA-1 and SHA-256 keys. Which I am sure I have entered correct. I picked my package name from build.gradle file and SHA-1 and SHA-256 keys were picker from Task :app:signingReportwhose variant was debug. Well all of my variants have the same keys. The command I use was :
cd android && ./gradlew signingReport
Both keys are entered in the project settings carefully.At last I have also enabled Play Integrity API from going to google cloud console select my current project that I am working on and then enabled it.
Clean the build folder re-run the app and still getting the same error again and again why is that ?
If I change my mobile phone and move from samsung to pixel I get [auth/unknown] error Although the re-captcha open-up and in between it closes and bring me back to the app and shows me the error.
Someone please help me there's something minor I'm missing
Help would be appreciated and stop me from killing myself thanks in advance !!
This is the version I'm using :
I have also enabled firebase Auth Check and created a debug token from firebase console and then encluded it in my command like this :
"android": "FIREBASE_APP_CHECK_DEBUG_TOKEN=MY_FIREBASE_DEBUG_TOKEN_FROM_CONSOLE && react-native run-android",
I have made sure that spellings are correct and moving on forward I have changed the name or package name of my app in the description for security purposes
Project Files
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: