Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android built-in back button #2

Open
martin-danhier opened this issue Mar 11, 2019 · 4 comments
Open

Android built-in back button #2

martin-danhier opened this issue Mar 11, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@martin-danhier
Copy link

Hello,
This works really well, but it does not work with the android built-in back button (I go back to the root tab whenever I use this button instead of the ion-back-button-tabs).
Is there a way to implement a similar thing with the built-in button ?

@darkside-by
Copy link

Hi, android back button requires certain subscription to override it's default behaviour, like:
this.platform.backButton.subscribe( () => { ... } );
So it appears some new plugin with a provided callback for this action is needed to handle the issue.

@servrox
Copy link
Owner

servrox commented Mar 12, 2019

I'll take a look at it on occasion ;)

@martin-danhier martin-danhier changed the title Androd built-in back button Android built-in back button Mar 12, 2019
@martin-danhier
Copy link
Author

Nice :)

@servrox servrox self-assigned this Mar 13, 2019
@servrox servrox added the enhancement New feature or request label Mar 13, 2019
@martin-danhier
Copy link
Author

I managed to fix it by simply typing in the constructor of my page
this.platform.backButton.subscribe((() => { this.navCtrl.back() }).bind(this));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants