You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's fairly intermittent. I didn't see the issue until I had hundreds of people logging in a day and then this started causing crashes for about 5% of my users. I haven't been able to reproduce it personally. @skizzo, if you have a reliable case for reproducing the issue, can you post it?
By sheer dumb luck I was able to reproduce this bug tonight in the simulator. It is far worse than I realized. After the app crashes, its state doesn't clear. So, the next time the user goes to open the app, it crashes again. Effectively rendering the app useless.
@auser would you be able to take a look or do you know an Objective-C developer that can take a look? Unfortunately my skill set is on Android, not iOS.
I'm getting this error when a user has a token for an account that has been deleted on firebase. The error handling in listenForAuth is trying to get the error message with [error localizedFailureReason] instead of [error localizedDescription] as is used everywhere else.
I assume using localizedDescription will be fine, but I'm not really an ObjC developer. Does anyone know if this is the right change to make? Is there any reason why localizedFailureReason would be used instead?
Thanks for coming up with a reproducible test case! It looks like the change you made already exists on v3 so I think it's likely that is a correct change (I too am not an objective-c developer).
It is worth noting there are other cases that trigger this exact same issue. It is not just when a user no longer exists.
See my comments on @mikemonteith PR. I did some digging in the firebase documentation and I'm convinced that his fix will solve this issue (I'm going to push out the change in my own code). I'll close out this PR as soon as it is merged.
Activity
skizzo commentedon Jan 28, 2017
Any updates on this? Happens to me too, using v2.3.9.
ghuh commentedon Jan 28, 2017
Nope, it's still crashing. Any Objective-C experts out there have any thoughts?
skizzo commentedon Jan 28, 2017
Can confirm that this only happens
firestack.auth.listenForAuth().Can't believe we're the only ones having troubles with this, I don't recall making any special settings for my Firebase setup..
ghuh commentedon Jan 28, 2017
It's fairly intermittent. I didn't see the issue until I had hundreds of people logging in a day and then this started causing crashes for about 5% of my users. I haven't been able to reproduce it personally. @skizzo, if you have a reliable case for reproducing the issue, can you post it?
ghuh commentedon Jan 29, 2017
By sheer dumb luck I was able to reproduce this bug tonight in the simulator. It is far worse than I realized. After the app crashes, its state doesn't clear. So, the next time the user goes to open the app, it crashes again. Effectively rendering the app useless.
@auser would you be able to take a look or do you know an Objective-C developer that can take a look? Unfortunately my skill set is on Android, not iOS.
Salakar commentedon Feb 1, 2017
@ghuh @skizzo - switch to my fork, its v3, ton of fixes / improvements
mikemonteith commentedon Feb 13, 2017
I'm getting this error when a user has a token for an account that has been deleted on firebase. The error handling in
listenForAuthis trying to get the error message with[error localizedFailureReason]instead of[error localizedDescription]as is used everywhere else.I assume using
localizedDescriptionwill be fine, but I'm not really an ObjC developer. Does anyone know if this is the right change to make? Is there any reason whylocalizedFailureReasonwould be used instead?https://github.com/mikemonteith/react-native-firestack/blob/master/ios/Firestack/FirestackAuth.m#L162
Prevent crash on error#localizedFailureReason
ghuh commentedon Feb 14, 2017
Thanks for coming up with a reproducible test case! It looks like the change you made already exists on v3 so I think it's likely that is a correct change (I too am not an objective-c developer).
It is worth noting there are other cases that trigger this exact same issue. It is not just when a user no longer exists.
ghuh commentedon Feb 14, 2017
See my comments on @mikemonteith PR. I did some digging in the firebase documentation and I'm convinced that his fix will solve this issue (I'm going to push out the change in my own code). I'll close out this PR as soon as it is merged.
ghuh commentedon Feb 26, 2017
I've pushed out @mikemonteith change to my production environment and confirmed that it has stopped this crash.
Since this change is in v3 and there is a PR out for v2, I'm going to go ahead and close this issue.