• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Niklas Karlsson
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic