-
Notifications
You must be signed in to change notification settings - Fork 28
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
Notification not received with app in background #25
Comments
I get messages with QtFirebaseExample (also when the app is killed or have been suspended for a long time) - so I'm assuming it's a setup problem. The messages can take a little while to arrive. No extra Java should be necessary than what is in this section of Main.java.
I'm not sure I understand this question? Others are reporting similar issues |
Trying to do everything from zero. Let you know :D |
I tried to use a service but is not that simple. I don't know how implement it in the Main.java in order to run the service and send me the notification when it arrives. I set it into the manifest (https://imgur.com/a/4N8wUKG), then I imported the package necessary for qt (https://imgur.com/oX4BQa1) and then I'm lost on what to do next. |
Hi @Trikos , I think it's something else wrong in your setup - as I already stated: a service shouldn't be necessary :)
Cool - now use this as a base for your own project if possible - then use QtFirebaseExample as a reference project. Follow the SETUP for Android to every detail - this is what all other users are doing. Double check that no app id's are left over anywhere from QtFirebaseExample.
Other things to consider:
In the politest manner possible: Yes, I do mind - see all of the above 😉 I know it's possible to get running because I know of several live apps in the app stores that uses QtFirebase - also with messaging. |
Well I think I miss a piece that you write here and wasnt explained in the doc.
I dont know what id should be this last one so Im gonna go further with it and dont worry. You are super polite and super helpful. I'm gonna go through all the steps again. |
Noted! Thanks! I'll try to make it more clear. Ah the
I would if I could remember them 😬. Have you checked out the "In the wild" section? (Hammer Bees & Dead Ascend is my games but they don't use Messaging) |
Ok, so I don't need the
Now I'm checking out those apps. Thank you |
I think so, yes 👍 Also Google's own Firebase C++ example might be of interest - best of luck! |
No I don't have any categories, I have no idea what they are and how they're used. The notifications still arrive. We use topics though. You can read more about FCM concepts here: |
Hello, What works: What does not work: How can I now display the message? |
At first I thought with the code piece that I had finally made it, but it still doesn't work. I've now added the line following, but when I now click on the received message from the message bar of my device, the app crashes. The code changing: Since in the example shown, the extend class is different (with them "QtActivity" and in this example "NativeActivity"), I changed it afterwards, but when I do so, the app crashes always I open it. |
Hmm... can you post a backtrace or something similar of the crash? |
could be a nullpointer when |
I check the Java code and I think it miss some part of code in order to receive the notification when the app is closed.
Also it needs the relative part in the manifest?
I was able to install everything and when sending notification from my own server my own google-services the notification appear in the console, but when the app is in background it didnt receive the push notification
The text was updated successfully, but these errors were encountered: