Fuse Community

LocalNotifications. Is any callback for click on notification?

Hi guys. I have timetable with events. For all events i Have local notification. When I clicked to my notification I want to go to details page, witch was notification about , but not to that page that i was left when my app went foreground. Can anybody help?

You can just navigate to your page when you receive the payload from opening a local notification, the navigation is really unto you, however you’ve designed it:

        LocalNotify.on("receivedMessage", function(payload) {
            console.log("Received Local Notification: " + payload);
            //goto your page e.g. router.push('myPage');
            //e.g. if (payload.type == 'page1') { router.push('page1'); }