-
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
onAuthStateChanged not returning any result on iOS Sumulator #1677
Comments
I'm having the same issue. The first time I run the app onAuthStateChanged is triggered properly, If I refresh once, it won't return anything but If I refresh again, It works. And If do it one more time, It happens again and so on. |
The same exact scenario is happening to me as outlined in the issue description and in @FacuAcosta 's comment. Same Firebase versions too. |
Related? #1619 |
happens to me too on iOS 12.1 simulator (RN 0.57.5, RNF 5.1.0)
|
Is anyone having this issue on Android? Or is it just iOS? Thanks |
Happening to me on iOS as well after upgrading from 5.0 to 5.1, some additional info Simulator (Debug)
Physical Device (Release) |
For my case, the following code makes firebase.auth().signOut().then(() => { CodePush.restartApp(false) }); I checked that iOS native callback |
I make PR for this. Could you check if it resolves this issue? "react-native-firebase": "git+https://github.com/hayanmind/react-native-firebase.git#1b5a9641383f1842d0a439109487c38903d1df2c" |
@ghsdh3409 Yep, your fix works on my end 👍 |
@ghsdh3409 just looked at your change and it makes sense - will get your PR merged for a patch release 👍 |
Issue
I just updated to rnfirebase 5.1.0 from 5.0 and noticed that
onAuthStateChanged
works in a strange way on ios simulator. I need to reload app twice for the method to return a result. The first time I reload the app the callback is never invoked! Then after reloading again it works as expecred. If I reload again it does not work and it repeats.Project Files
iOS
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
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
iOS 12
10.14
N/A
N/A
Xcode 10
React Native
version:0.57.4
React Native Firebase
library version:5.1
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on TwitterThe text was updated successfully, but these errors were encountered: