-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔥 [🐛] auth/internal-error on iOS Only (Using Expo) #8137
Comments
So if it works in one environment but not the other than it must be a configuration error? I'm not sure how to provide help for that other than the vague + I'm certain you already through of it "triple check absolutely every single configuration item" 🤔 |
lol thanks yep triple checked everything and made several deployments nothing seems to work. i have Authntication enabled in Firebase with both email authentication and Google authentication enabled. both my dev and prod projects in firebase are setup the same as far as I can see and I've been reviewing them very closely. been doing research for about two days now and haven't found many other things to change. is there anything other info I can provide to help? |
Plug a real device running the production build into a computer and either run the production build from xcode or use console.app to watch the phone logs while you reproduce the error, and fish out anything related to the internal error while it happens, there may be clues there |
I use Sentry to view logs in production. As mentioned, all it throws is I did notice that Firebase Analytics, which I also installed through react-native-firebase, is picking me up as a user. So Analytics works but Auth still does not. I see that Analytics doesn't need a plugin, so if there is a plugin issue, that would make sense. Currently, I have the following in my app.config.js under expo.plugins as you have laid out in your docs: "@react-native-firebase/app",
"@react-native-firebase/auth",
[
"expo-build-properties",
{
ios: {
useFrameworks: "static"
}
}
] @mikehardy assuming you're the author? Do you know of anything in the auth plugin file that might help? Trying every combination of settings I know and following suggested from the web. Really would love to use your software and get this released. I appreciate the help! |
You really want to do this:
You can watch it in real time. You can get all the surrounding context I'm not "the author" though I help a lot 😆 - this suite of modules is huge, many authors! https://github.com/invertase/react-native-firebase/graphs/contributors I don't use Expo, sorry, so unsure what could be going on. The source is available though and none of the plugins are very complicated, quick to read through |
I'm half excited to report that it's fixed. I have a production project and a development project and it seems they weren't playing together well. The solution was: I say half excited because I'd really like to have an isolated development project with its own pool of users, but hey it's working on prod! I'll try and spin up a development app under my development project, but I'm just excited to see some progress. I also need to see if this still works on Android in both environments. |
Issue
I can get up and running with my Expo App and react-native-firebase just fine in development and production on Android and development on iOS, but NOT production on iOS. I'm using EAS and Expo to build and deploy my apps to TestFlight and the app store. But when I try to login on to the deployed version of my app I get the error:
auth/internal-error
I have two Firebase Projects; one for dev and one for prod. In each, I have an Android app and an iOS app. I downloaded the credential .json and .plist files and uploaded them to Expo secrets and referenced them in my app.config.json file. I even successfully checked my .plist file with plutil.
I've also installed the packages with Expo added the plugins like so:
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
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
:// 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:react-native-firebase
version you're using that has this issue:^21.4.0
Firebase
module(s) you're using that has the issue:auth, storage, and analytics
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: