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 5, back button override is not working #279
Comments
I used the following plugin to overcome this bug This is the code for Ionic App:
|
I'm having the same issue, in fact it doesn't appear as though any part of this plugin is working (on android version 6) |
You can fix it without an extra plugin: In your app.component.ts
|
I used a combination of @gaurav-chandra & @tomilofano solution which requires no extra plugin |
@goleary, please, post your code, I have the same issue. |
@ddduarte Something like this:
|
Still not working... |
@ddduarte I was also having trouble getting the implementation working, this is what I came up with (from my
The problem was getting the correct and valid nav for being able to check |
My implementation is look like of the @goleary, except at line |
My
} Not work. |
have you tried setting a break point and stepping through to see where your code flows? |
@goleary, yes. I think that the problem is the android version, 4.4.2. Becouse I tested the plugin minimize, and don't worked too. |
It's alive!!
and
|
I really dislike the idea to override the hardware back button globally. Is there any update on the main issue? |
I bettered my code.
|
i have used this for getting gps location data on background . but after about 1 min background work can not get gps locations any more. i have disableWebViewOptimizations also. |
Hi,
cordova.plugins.backgroundMode.overrideBackButton();
is not working as expected. The icon shows for a fraction of a second and then the app stops working and the icon in the tray is no more.
I don't have any other code except for a hello world app.
The text was updated successfully, but these errors were encountered: