I’m recieving push notifications and registering it in app.component.
Problem: i want on recieved push message ( pressed OK ) to go to HomePage. On HomePage after ionViewDidEnter im calling api for new data. How to reload HomePage after push if HomePage is already open so i can trigger ionViewDidEnter againt so api can be called again? it all works if push is recieved on every other page
async pushNotification(message) {
const alert = await this.alertCtrl.create({
header: message,
buttons: [
{
text: 'OK',
handler: (data) => {
} else {
this.router.navigateByUrl('/login');
}
}
}
]
});
await alert.present();
}