FCM and Unity, do a notification system like whatsapp

327 views
Skip to first unread message

rockylima...@gmail.com

unread,
Nov 11, 2016, 12:43:24 AM11/11/16
to Firebase Google Group
Hi

I'm trying to implement FCM push notification in Unity, and so far, my app can received the message and notification.
My question is, is it possible to do the this scenario:
"I want to inform the device if they have a new message from Mr.Mike, but if the app current page is already showing the chat with Mr.Mike page, it won't show the notification, but add the message to the new chat bubble instead. But if the app is not in the chat with Mr.Mike page, or app in background or killed, it will show the notification. (yes, the scenario just like how Whatsapp handle the notification)"

Stewart Miles

unread,
Nov 11, 2016, 1:08:55 PM11/11/16
to fireba...@googlegroups.com
I believe what you're describing is our current behavior.  Check out the messaging sample https://github.com/firebase/quickstart-unity/tree/master/messaging/testapp and send a message to it in the following scenarios:
  • App in foreground: Shows message in the application window, no notification
  • App in background (running): Displays message as notification, tapping the notification opens the app
  • App not running: Displays message as notification, tapping the notification opens the app and sends the message to the application.
Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a0bd1dab-05a4-45e7-bd49-d31e01038304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages