-
Notifications
You must be signed in to change notification settings - Fork 964
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
Hardware back button does not work on device #417
Comments
We're not emitting the backbutton event that Cordova did that Ionic relies on, we can fix that |
K, fixed in master and will be in the next release in a few days |
Is this, fixed ? I am having the same troubles with back button not exiting.
I am using the ionic 4 beta with :
|
Please, if something doesn’t work report a new issue and provide more information (code used, or even sample app if possible). Don’t comment on old issues as it can be missed |
still dont work... |
import { App } from '@capacitor/app';
document.addEventListener('deviceready', () => {
App.addListener('backButton', (ev: any) => {
console.log('fire');
});
}); Edit: I could solve the problem. I loaded my custom plugins the old way, so I got the error |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Tried capacitor for first time today and built the app successfully. But hardware back button does not work on device.
Back button on navbar works.
Steps I followed:
On hitting hardware back button app does exit, but page navigation does not work.
Capacitor Info:
Ionic Info:
Device : MiA1(Android 8.1.0)
The text was updated successfully, but these errors were encountered: