cordova-plugin-native-keyboard icon indicating copy to clipboard operation
cordova-plugin-native-keyboard copied to clipboard

[Android] back-button doesn't work as expected

Open blue-hope opened this issue 6 years ago • 3 comments

My environment: ionic 3

I expected that back-button in android environment works like popping the ionic navigation control stack or exiting the app. But when I add this plugin in my android ionic-app, and use keyboard as usual, back-button does not work. Here's the situation where the problem occurs:

If user want to type something in app, he'll open the keyboard tap

In this situation, back-button works.

When he types something on keyboard tap

In this situation, back-button doesn't work.

If he enter the typed word, and the cursor in keyboard input box exists

In this situation, back-button doesn't work.

At last, if he touches other side apart from keyboard and the cursor disappears

In this situation, back-botton works

I think the back-button is not processed on android_layer or in-app layer, but handled within the plugin inside. How can I solve this problem ?

blue-hope avatar Oct 15 '18 03:10 blue-hope

same problem, behavior:

  • before first use of keyboard all is working as it should = my handler on back button is working
  • open keyboard first time in messenger -> result -> when you hit back button, application is exited immediately

pcvengros avatar Nov 26 '18 12:11 pcvengros

@pcvengros Did you ever figure out a resolution here?

gregavola avatar May 14 '19 12:05 gregavola

No, still same issue with no resolution. Back button handler works correctly unless the nativekeyboard is closed/hiden. If keyboard is open it will stop working and on back button whole app closes.

pcvengros avatar Feb 24 '20 14:02 pcvengros