# Android notification

**URL:** <https://forums.fusetools.com/t/android-notification/2364>\
**Category:** How-to Discussions\
**Created:** [July 23, 2017, 9:33am UTC](https://forums.fusetools.com/t/android-notification/2364 "2017-07-23T09:33:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![basma.alsousi](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@basma.alsousi](https://forums.fusetools.com/u/basma.alsousi)\
**Post date:** [July 23, 2017, 9:33am UTC](https://forums.fusetools.com/t/android-notification/2364/1 "2017-07-23T09:33:10Z")

</div>

Hi,

I used GCM for android notification. when I open my app and sent this notification \>\> I can receive it by "  
push.onReceivedMessage = function(payload) { "

but when I close my app and receive notification on list of notifications … I click on it but I can’t go to exactly uri in my app . open init page of my app . I can’t receive it by  
push.onReceivedMessage = function(payload) { "

How I can solve it ? when click on notification go to exactly uri in my app ?

Thanks,

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 24, 2017, 8:34am UTC](https://forums.fusetools.com/t/android-notification/2364/2 "2017-07-24T08:34:29Z")

</div>

You need to put the `push.on()` subscription in a JavaScript file that is very close to the root of your app and gets executed during app startup. And you need to handle local app navigation yourself.

So when you receive a particular push notification in `push.on()`, you have to parse it yourself and decide where to navigate the user to.

---

<div class="post-metadata">

**Author:** ![basma.alsousi](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@basma.alsousi](https://forums.fusetools.com/u/basma.alsousi)\
**Post date:** [July 24, 2017, 9:35am UTC](https://forums.fusetools.com/t/android-notification/2364/3 "2017-07-24T09:35:08Z")

</div>

Thanks for reply but …

I need to handle notification when my app is closed . I put this  
" push.on(“receivedMessage”, function(payload) {"  
and I can handle notification when received it during my app is open .

Still problem when I click on notification received when my app is closed ! how I can handle it ? as this photo I need to click on it – handle it How ?

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/PLiFucNCzDHi-image-1500888709228.jpg)

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 24, 2017, 9:42am UTC](https://forums.fusetools.com/t/android-notification/2364/4 "2017-07-24T09:42:17Z")

</div>

After your app launches, that notification you clicked on will be delivered to that same `push.on("receivedMessage")` listener. That’s where you handle it.
