Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Platform.backButton.subscribeWithPriority doesn't manage priorities #17824
It seems a bug but there's any documentation for that method, so I don't know if I'm using it wrong or it's deprecated without any warning.
Steps to reproduce:
Hi, thank you.
I provided a repository with the code you need: https://github.com/Takkuz/backButtonIonicIssue
On tab2 there is a button to go to tab2-page2, on that page you can change dinamically the priority of the hardware backButton on Android. Using no value or <0 or NaN value removes the subscription.
As you can see, without subscription you can use hardware backButton to go to previous page; with priority 0 to 100 it closes popup, as expected, but you doesn't go to previous page; from 101 and above even the popup isn't handled anymore.
As far as I can remember, from previous Ionic versions, under priority 100 is handled only if there is any page on the stack because going back on page has priority 100.
Being able to control your navigation stacks and clicks etc should be the absolute basics.
It shouldn't have been out of beta or RC stage yet with this kind of bugs.
But now I'm stuck with it, people above are waiting for an explanation for delays and best I can tell them is "ionic has major bugs but they haven't fixed them".