-
Notifications
You must be signed in to change notification settings - Fork 120
[Bug] Messaging Subscribe stays pending on Android #1361
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
I'm not clear what the problems you are seeing might be, but there is a handful of additional steps that are needed for Android, such as updating the AndroidManifest to use the ListenerService and MessageForwardingService. For more instructions you can see: https://firebase.google.com/docs/cloud-messaging/cpp/client For more examples, you can also see https://github.com/firebase/quickstart-cpp/tree/main/messaging/testapp which includes more set up instructions as well. |
Well, the thing is, I receive notifications just fine when using the device token to send, so I don't think that's the problem ? Unless there's additional things to put in the manifest for topic messaging (which I didn't see), then that might be where it comes from ^^' |
Hmm, I can't find anything that would be necessary for subscribing to topics that you wouldn't need for other steps as well. Do you see anything useful in the logs? You can also adjust the log level via:
which might indicate what the problem is. |
Hey @Neitah. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @Neitah if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Hi, I have the same issue on my side, and it is not solved by release 11.4.0:
Thanks |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Created a Qt 6.3.1 project with Firebase Messaging.
Received the Firebase Authentication Token
Tried to subscribe to a topic, and it stays pending.
The same code works on iOS.
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
The status of the Future gotten from Subscribe stays as kFutureStatusPending
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
Token received like described here :
https://medium.com/@shigmas/push-notifications-in-qt-for-ios-and-android-50c2f9a38444
Then, I just did this :
::firebase::messaging::Subscribe("TopicToSubscribeObstructed");
The text was updated successfully, but these errors were encountered: