Currently, I’m working on push notification integration with my Ionic2 App. It is able to receive the push notification, however I would like to refresh the current page upon notification is received. Let say, I have a tab with badge in current page, once new messages arrived, I’ll increase the badge number programmatically.
The logic to handle the received notification is inside a service, if it is possible to get the current view/component and invoke specific function to refresh the view. e.g. this.navCtrl.getActive().refreshMethod(data). refreshMethod is implemented in component.
plz forgive my poor English, Really appreciate if anyone can give me some advice.