Forums Register Login

using FireBase or similar to Notify and click on it to start a activity, dont work in in bakground

+Pie Number of slices to send: Send
Hi
I have looked att this greate boilerplate example:
http://www.coderzheaven.com/2012/03/10/send-data-when-clicking-on-a-notification-in-android/

it is about a simple Notifier starter that start a activity  ("GoToNotification") when
I click the on the "Notification"
ALL that is working fine!


can some one please guide me with the following:

if I use a "remote-notification", that I receive the notification instead(Firebase)
the following happens:
- IF I started the App(based on the example) :
- - the notification receives, AND I can click on it to go to "GoToNotification" :-)

- IF I started the App(based on the example)  BUT have the App in the background:
- - the notification receives, AND when I click on it to go now INSTEAD to "main activity" :-(

can some one please tell me if you have any ideas??
(I receive the Notification every time, but the "click action"-result is different)
Regards
Niklas

You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 715 times.
Similar Threads
Firebase notification that resolves into a notification and mail button with mail-intent?
Android push notification - limitations
Firebase [jvm v2.5.0] - class not found
Hibernated Pojo Generator using config.xml for Oracle database
Learning Andriod with a background of Java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:10:36.