How to intercept ionic tab Jump

ionic3 is currently using tab templates

now map the tab to three pages of pageA pageB pageC.

app one entry is pageA. Currently, users who have not logged in or do not have perfect information are not allowed to browse to pageB pageC.

the current practice is to call the API in the ionicWillEnter lifecycle to determine whether the user"s data is perfect when entering pageB or pageC. If the data is not perfect, immediately jump to the data page (InfoPage).

currently, there are two problems, that is, the contents of pageB and pageC will still flash, and if you click back from InfoPage, you will return to pageB or pageC, then you will enter the life cycle of ionicWillEnter, and then you will enter InfoPage and InfoPage will not be able to return.

I don"t know if there is a good solution

Apr.22,2022
Menu