Skip to content
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

Receiving messages from Firebase while app is killed #113

Open
MasterMind2k opened this issue Jun 25, 2019 · 5 comments
Open

Receiving messages from Firebase while app is killed #113

MasterMind2k opened this issue Jun 25, 2019 · 5 comments

Comments

@MasterMind2k
Copy link
Contributor

During development I've identified that app, if killed, will not receive messages to C++ code if app is not running (with some moment to think about it, it makes sense actually :) ).

I have a use case that off the shelve notification bubble delivered by Firebase implementation won't do.

I am just opening this ticket to see if anyone has similar issues. I've cut some corners by completely ignoring Firebase C++ SDK and written a small layer in Java and custom integration API in the C++ parts.

Another thing that I realised is, that C++ written service cannot receive firebase messages. Since you need an Activity object when registering firebase app.

So, to sum this up. The use case is:

  • Be able to parse data messages even when application is dead
@Larpon
Copy link
Owner

Larpon commented Oct 3, 2019

Have you tried making a service? That way you have C++ code still alive when the app is shut down?

@MasterMind2k
Copy link
Contributor Author

Yes, I've made a use of services. But in this case, I do not need (or able) to use QtFirebase's wrapper around messaging.

Which in my use case, is not a problem. Maybe an idea, to prepare an infrastructure to have this ability by default in QtFirebase.

@Larpon
Copy link
Owner

Larpon commented Oct 25, 2019

Yes that would be useful - let me know if you come up with something!

@Larpon
Copy link
Owner

Larpon commented Mar 24, 2020

@MasterMind2k - just to make sure; are you using this

@Larpon Larpon closed this as completed Mar 24, 2020
@Larpon Larpon reopened this Mar 24, 2020
@MasterMind2k
Copy link
Contributor Author

Hmm, not sure. I do have somewhere in my memory that I've tried it.

Will retry anyway and post results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants