i create an app that have push notification in background, when the user tap the notification bubble, it can navigate smoothly to the page. but the problem is when the user tap the back button in the android phone, it will go to the blank page
here is my code
return await CustomDialog.show(
context,
title: "Quit App",
description: "Are you sure you want to quit the app?",
btnCancelText: "No",
btnOkText: "Yes",
btnCancelOnPress: () => Navigator.of(context).pop(),
btnOkOnPress: () {
Navigator.of(context).pop(true);
},
icon: Iconsax.info_circle,
dialogType: DialogType.success,
)
i try the SystemNavigator.pop();
but still not working
That is because there seems to be only one page available in your stack. This could be solved by using the correct
Navigator
.Please add more code to where the routing to the Notification actually occurs.