-
Notifications
You must be signed in to change notification settings - Fork 441
Don't receive fcm notification when I exit the unity app,only user open the unity app the mobile notifiction list can show the fcm push notification. #25
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
It sounds like the Firebase Messaging service isn't launched in the application. If you're customizing the AndroidManifest.xml for your application you'll need to make sure you follow the setup instructions on https://firebase.google.com/docs/cloud-messaging/unity/client#note_for_android |
@stewartmiles I use quickstart samples to test.It also not receive push notification on the notificition list when i exit the sample application.Can receive push notification only when the application is on runtime. |
@stewartmiles I means that the fcm service (about the current unity application) isn't always Resident background when user exit app. |
We just tested this again and we are definitely seeing notifications come in when sending to the application when:
To be clear when the app is in the background or not running you don't get a callback when the notification comes in. The app gets to service the notification when it reopens due to a user clicking on the notification. Is this the behavior you're seeing? |
@stewartmiles I see the behavior is that When App is not running the notification don't comes in. |
How are you sending the notification? Are you using the notification console? I just built the sample + the 1.1.0 SDK and verified the following on a Nexus 4 running Android 4.3 (because I like to keep it old skool 👍 ):
I've attached a screenshot of the message I sent via the notification console. |
@stewartmiles Thank you first of all. B: run app on SUMSUNG Galaxy S4.The notification comes in via Topic notification console.But the notification don't comes in via User segment(using the Bundle identifier) notification console.This is also a issue.Do you see this behavior? |
Hi, I have the same issue. I sent three types of notifications (User segment, Topic and Unique Device) The app gets the notification when app is running in the foreground in callbackFunction; when app resident in the background as notification on system tray but cannnot get notification when I need urgent support. |
@MustafaKilci Sorry,i don't fix this.Just wait the other one or the next release. |
Hi, I have the same issue |
The details of the expected behavior are here
https://firebase.google.com/docs/cloud-messaging/android/receive:
- When the app is running in the foreground the notification is routed
from the service (that handles the notification) to the SDK which then
fires the callback.
- When the app is in the background and running we can route the
notification to the app, as it's running :)
- When the app isn't running / killed, our service runs which receives
the notification and caches it. When the user clicks on the notification
the notification is routed to the app when it's launched.
If you want to customize what happens in the notification when the app
isn't running you'll need to subclass our service
(com.google.firebase.messaging.cpp.ListenerService which implements
FirebaseMessagingServices
<https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService>)
and replace the reference to it in your Android manifest. You can then
override the onMessageReceived() method to customize the behavior in your
service. Obviously, this is not particularly cross platform as there is no
way to do this on iOS.
Cheers,
Stewart
…On Fri, Jan 13, 2017 at 1:47 PM, phpnato ***@***.***> wrote:
Hi, I have the same issue
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFw1RFlIAFJEBn7U478e6MkY9xP_nMThks5rR_D7gaJpZM4LKSDG>
.
|
Closing out as it sounds like we need to clarify our docs on this behavior. |
any updates on this? anyone customised the implementation to get it work when app is killed. |
@nabeelpkl if you want to customize messaging handling on Android when the app is in the background (i.e just the messaging service is running) see https://firebase.google.com/docs/cloud-messaging/cpp/client#custom_message_handling_on_android (the Unity SDK uses the C++ SDK under the hood). |
Use the Unity plugins of Messaging on Android.Can't receive push notification on the mobile notifiction list when exit the unity app.
The text was updated successfully, but these errors were encountered: