-
Notifications
You must be signed in to change notification settings - Fork 441
[Question] Push notification messages are not displayed in the closed/background app on launch #1111
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
Hi, I did a quick test on our app and it worked as expected. Here are the steps I performed,
Let me know if you need more details but I am curious if you are seeing similar behavior on your end. |
Hi there.
The notification is received but I need to verify this event by sending
event from unity.
OnMessageReceived is not triggered of the app was killed.
ср, 11 авг. 2021 г., 11:22 PM Vimanyu Jain ***@***.***>:
… Hi,
Thank you for creating this issue. It would help to have some more
information to be able to debug this more efficiently.
Could you try reproducing this issue in our quickstart-unity test app?
I did a quick test on our app and it worked as expected. Here are the
steps I performed,
1. Clone our github repo locally and navigate to messaging/testapp
2. Place a valid "google-services.json" for your project into Assets/
3. Open in Unity (I used Unity 2020.1.7f1) and change Build settings
to Android and update the bundle identifier in "Player Settings -> Android
-> Other settings -> Identification -> Package name" to something that
corresponds with your google-services.json.
4. Build and Run (I am using a Pixel 5 for my test)
5. Sending message from Firebase console with some data in it and here
is the behavior on the app,
| State | Result |
| ---- | ----- |
| App in foreground | Message received and you can see the
notification details (title, body) along with data |
| App in background | Clicking notification opens the app and shows
the data|
Let me know if you need more details but I am curious if you are seeing
similar behavior on your end.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVBQYFXE5SPAROKOSN5XSTT4LLZPANCNFSM5B266WBQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Hi @equizo, Which event are you sending from Unity? |
@vimanyu Could you tell how do you get if "data" was received on the device? Also, do you send the notifications from the FCM console? |
Hi @equizo, From what I know, here's a quote of this issue:
So this is an expected behavior that app's killed would not receive FCM notification. |
hi @cynthiajoan |
I followed the documentation and created another project from scratch. Still no data for iOS. Please find the source files attached as well as Xcode console log |
Are the messages showing up in the system tray? If so, does tapping on them start up the app that is in the background? If so, does the app re-start or does it continue where it left off? |
Yes, the behavior is as expected. If the app was minimized - then it will proceed, otherwise, start. |
In the original post you commented that you were targeting Android, but now it sounds like you're targeting iOS. Can you clarify whether this issue occurring on Android or iOS (or both)? So is this an accurate description of what is happening?
Is that correct? |
@alexames excuse me, ios post I got mixed up with another thread. |
I tried to reproduce it with the following configuration, but I can get the
Here is what I did after the app was deployed:
Here is a screenshot of the app for the second launch. I would be great if you can help us to diagnose the issue with the following steps.
Appreciate it. |
@chkuang-g thank you. Will give it a shot once have a chance to! |
Hey @equizo. 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. @equizo 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. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the question here:
Push notification messages are not received in the app if the app is either closed or is in the background. The foreground app receives messages OK.
and
2021-08-10 00:01:16.109 20990-21989/com.threed_view.FluentWorldsDev W/FirebaseMessaging: Missing Default Notification Channel metadata in AndroidManifest. Default value will be used.
So I guess I somehow missing on queued message handling when app is launched?
The text was updated successfully, but these errors were encountered: