-
Notifications
You must be signed in to change notification settings - Fork 2.2k
iid().delete() / iid().deleteToken() causes app to crash #4044
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
Comments
We need a crash stacktrace to debug crashes, you can search on how to get them, please post one here? |
I don't really know where to look for this, if you can please tell me. When I run the app in XCode, the following happens: I press on the sign out button, and the following output lines appear:
Also in XCode, the following window appears:
Edit: By leaving out |
That's close to what we need, but I'm hoping not just for the "first throw call stack", I'm looking something like the crash report here firebase/firebase-ios-sdk#4205 |
Is this the correct output?
Output after typing
|
Yes! That's a crash trace we can work with, those are like smoking guns pointing at the problem usually, thank you |
Hey, @yesterday24, I've tested on a device, version do you mind providing a reproducible snippet of code? Thanks. |
@yesterday24 perhaps more important, I should have asked this before but you should really fill out the template, it would have version information. Perhaps this is old versions? I would confirm you are up to date as of this typing on all stable versions of react-native-firebase, including firebase-ios-sdk override to 6.29.0 (current) so we know we are not chasing phantoms (override like so: https://rnfirebase.io/#overriding-native-sdk-versions) |
@yesterday24 Thanks for posting the |
@mortocks we are still looking for complete issue information and a reproduction as noted above. I'm happy (in a way) to hear that you can confirm it, but what would be ideal is if you opened a new issue following the template (edit: leaving this open until/in case a more complete issue with details does not appear, as it does seem to be a reproducible crash) |
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Hello, I have an app where only signed in users can receive FCM notifications.
I'll describe my work flow first:
Signing in
When signing in, I use
messaging().getToken()
to get the FCM token, and I store this in my own database for further use.Signing out
When signing out, I use
messaging().deleteToken()
to delete the token. There is also a problem with this, I've issued it here (closed issue but I did not found a solution yet).Solution(s) tried so far:
To try to "solve" this problem (about receiving the same FCM token again after using
messaging().deleteToken()
), I triediid().deleteToken()
andiid().delete()
, but both functions seems to crash my app. I do not get an error message, the app just closes.Platform: iOS 13.5
Edit:
The use of
iid().delete()
seems to solve my problem of getting the same token every time I sign in/sign out. It seems thatmessaging().deleteToken()
isn't doing "the job", or there is a caching problem.The only problem is: using
iid().delete()
causes my app to close after signing out, but I want to be redirected to the sign in screen. The crash is not ok.The text was updated successfully, but these errors were encountered: