Hardware back button not working after deploy.update()

Hi there,

I just ran into an issue this morning: When using Ionic deploy, the app reloads, shows my new changes and everything still works as expected. However, the hardware back button (android) doesn’t seem to do anything.

adb logcat registers the event but the app doesn’t seem to listen to it.

D/InputReader( 486): Input event: value=1
I/InputDispatcher( 486): Delivering key to current input target: action: 0x0
I/InputDispatcher( 486): Delivering key to current input target: action: 0x0
I/InputDispatcher( 486): Delivering key to current input target: action: 0x0
D/InputReader( 486): Input event: value=0
I/InputDispatcher( 486): Delivering key to current input target: action: 0x1
I/InputDispatcher( 486): Delivering key to current input target: action: 0x1
I/InputDispatcher( 486): Delivering key to current input target: action: 0x1

PS: I tried $ionicPlatform.registerBackButtonAction: same issue.

Any ideas?
Thanks

1 Like

Hey @thomasj, I just had the exact same problem! Did you figure out what causes this or could even resolve this?

Hey Sujan,

No, unfortunately I did not find any workaround.

Damn.

Did you do any further debugging into it? I don’t even know where to start… probably some event isn’t getting reconnected to the code handling it or something :confused:

No I left it like it is but I’d be interested in the solution if you ever find the reason why.

For now I “solved” it by not triggering an update with Ionic Deploy, but downloading the whole APK and installing it - including the new /www folder of course. So no more Ionic Deploy update necessary on Android… Of course this is much more risky than using Ionic Deploy.

Does it always happen or just sometimes?