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
Cloud Messaging subscription error #2625
Comments
Is your FCM token changed the second time app starts? I'm wondering if it's a similar issue like #2438 |
I am receiving the same issue as described above. On the first run, everything works correctly but on the second run, I receive the same errors described above. I'm using firebase version 5.20.2 with firebase messaging version 3.5.0 and have been reading issue #2438 , from my error logs I don't see FCM token changing on the second run of the app. It also seems when I receive these "failed to subscribe errors" my push notifications stop working altogether also. I provided an error log with debug logging enabled. Error log |
@stshelton From your log, you are not sending me the full context, like "topic subscription request". Also some of the logs seem missing. Can you send the full log of anything InstanceID and Messaging Log related so I can get a better idea on why the request was failing? Thank you! |
I searched instanceID and Messaging within debug window. If you want all of debug window I can copy and paste it, it just logged a lot of info that I feel like u don't need. I was trying to save all of log but i couldnt find a way. instanceID: messaging topic |
It seems if I downgrade to firebase version 5.15.0. Push notifications/topics are working as intended, but only if I delete app and redownload it. Which there are some live users that have this version of the app and I would like to be able to fix push notifications with an update that doesn't require the user to delete app and redownload. |
I'm also experiencing the same issue. Hope the following info is helpful: Describe your environmentXcode version: 10.2.1 (10E1001) Debug logsInstead of pasting my full logs, I'm only pasting what I believe to be the relevant parts. First app start (v5.20.2)
Second app start (v5.20.2)
Third app start (v5.20.2)
Notice that the Here's what my debug logs look like after downgrading to Firebase SDK version 5.15.0: First app start (v5.15.0)
Second app start (v5.15.0)
In this case, the Let me know if there are any other logs you'd like me to provide. In the meantime, I'll be downgrading to v5.15.0 to work around the issue. |
Looks like the parameters are consistent, I will forward the request to the team and get back to you soon. |
I also got this. Why is it not fixed? |
i'm having the same issue, downgrading to v5.15.0 worked
|
Notice your device ID has changed, this should be the same issue that one of our previous release cause your client to have a bad checkin. #2860 should fix the issue, and it will be in the next release. In the meantime, you can either patch #2860 or call deleteIDWithHandler: once(and only once) to clear your corrupted checkin data. |
Describe your environment
Describe the problem
I'm trying to subscribe the user to a topic named after his phone number (only numbers) and at installation it works perfectly, but after running the app once again it fails to subscribe him into that topic and he don't get notifications anymore.
This is the error i'm getting:
The operation couldn’t be completed. (com.google.fcm error 0.)
And another error i'm getting is:
[Firebase/Messaging][I-FCM004001] Failed to subscribe to topic Error Domain=com.google.fcm Code=0 "(null)"
Steps to reproduce:
Implement the basic code of Cloud Messaging.
Relevant Code:
AppDelegate:
Main ViewController (it belongs to a different storyboard after logging in to the app):
The text was updated successfully, but these errors were encountered: