Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] Bug Report SignInWithPhoneNumber Not working for Expo Dev Client #7944

Open
1 of 10 tasks
leeroyanesu opened this issue Jul 27, 2024 · 2 comments
Open
1 of 10 tasks

Comments

@leeroyanesu
Copy link

Issue

My current signinwithphonenumber is not returning an sms for the verfication code in Expo Dev Client (React Native)

{"errorCode": "auth/operation-not-allowed", "msg": "[auth/operation-not-allowed] This operation is not allowed. This may be because the given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.", "success": false}

I have enabled the phone signin provider and also have verified the SHA-1 & SHA-256 but still nothing seems to work, any suggestion what it might be. I have tried with the foreRecaptcha... and without but still returns the same Error.

RN Firebase Auth & App Version: 20.3.0
React Native: 0.74.2
Expo: 51.0.14

auth().settings.forceRecaptchaFlowForTesting = true;
    return auth().signInWithPhoneNumber(phoneNum).then((result) => {
        return { verificationID: result.verificationId, success: true }
    }).catch((error) => {
        console.log(error)
        const errorCode = error.code;
        return { errorCode: error.code, msg: error.message, success: false };
    })

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:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • 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
  • Are you using TypeScript?
    • Y/N & VERSION


@Lyokone Lyokone added the plugin: authentication Firebase Authentication label Jul 30, 2024
@russellwheatley
Copy link
Member

Try redownloading you google-services.json and replace the old one.

Copy link

github-actions bot commented Sep 9, 2024

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?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot added the Stale label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants