In one of Activity
-derived class methods I'm trying to send a Notification
, clicking on which will bring the Activity to foreground if my app is in background (not visible) right now. There are reasons why I don't use Service, but use Activity (that will hold PARTIAL_WAKE_LOCK
) for that.
I remember Notification
worked for me when I used it like this, but I sent it from Service. Now when I send it from Activity method and it doesn't show up, though I hear its notification sound.
So are there any reasons that prevent Notification
show up sent from Activity
method and how can it be solved?
Thank you.