Run callback when clicking of notification body #261

Papipo opened this Issue Oct 26, 2015 · 2 comments


None yet

2 participants

Papipo commented Oct 26, 2015

It would be nice to be able to call a function when the notification body is clicked.

I have this app with a tabbed ui, and each tab holds different media types (pics, videos, blog posts...), thus when the user gets a "new video" notification, I would like the app to just display the video instead of opening the app.


@Papipo when you click on a notification in the shader the app is started and your on "notification" event handler is called. Then you can look at the data in your push and just play the video. Does this not accomplish the task you want?

Papipo commented Oct 26, 2015

Sorry, I thought that this callback was fired when the device received the notification. Now I see that if the app is already open, the callback is called, and if the app is closed, it works as you said.

Thanks and sorry for bothering.

@Papipo Papipo closed this Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment