Greetings, I am facing a unique challenge with the way I create activities in my app. Initially, on the OverviewPage
, the user can open a modal that allows them to select an activity from a list and then navigate to the desired activityPage
for creating the selected activity.
Upon submitting the new activity and leaving the page, I utilize navigation methods in the following order:
this.navCtrl.getPrevious().data.toastMessage = 'Added activity successfully';
this.navCtrl.pop();
However, after adding the new activity, it returns to the OverviewPage
with the modal still open. Unfortunately, the page does not reload, making it challenging for me to detect whether I should show a popover in the ionViewWillEnter event.
if(this.navParams.data.toastMessage) {
this.presentToast(this.navParams.data.toastMessage)
}
I am seeking advice on how to modify the code so that the toastMessage can be displayed in the modal after creating a new activity. Any assistance is greatly appreciated. Thank you!