Hello all,
Im trying to get the current Active view when a push notification is recived,
For Example:
i have a messaging system, and i wanna check if the user is currently on the MessageViewPage then just update the message list else if the user is on any other page show a modal.
push.on('notification', (data) => {
if(isMessageViewPAge) { update } esle { GoToMEssage}
});
Basiclly this is the idea. So i want to check every time a push notification is retrieved the current active view.