Repository navigation
iOS FirestackAuth crashing #256
Description
Activity
Any updates on this? Happens to me too, using v2.3.9.
Nope, it's still crashing. Any Objective-C experts out there have any thoughts?
Can confirm that this only happens
- on an iOS device (no problems in simulator), and
- when adding an auth listener via
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..
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
listenForAuthis trying to get the error message with[error localizedFailureReason]instead of[error localizedDescription]as is used everywhere else.
I assume usinglocalizedDescriptionwill 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?Reacted by Kevin Hayen and Stephan Müller- added a commit that references this issue
on Feb 13, 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.
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.
Reacted by Stephan MüllerI'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.
react-native-firestack v2.3.3