ionic-team / ionic-v3

The repo for Ionic 3.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
128 stars 85 forks source link

On iOS input number 6 not working #1047

Open baumwehn opened 5 years ago

baumwehn commented 5 years ago

I'm submitting a ... [x ] bug report [ ] feature request

Current behavior: On iOS input number 6 sometimes not working. Keyboard is visible and iOS specific input feedback is given. The number is not added to the input field. Only occurs for number 6.

Expected behavior: Pressing 6 on input result in number 6 is added to the input field and visible there.

Steps to reproduce: The bug occurs randomly. There is no way to reproduce it by 100%. If the bug occurs, the number 6 input is impossible until the application is terminated und restarted afterwards. At all times it is possible to enter number 6 in other apps.

Related code:

Not code related. Only occurs on iOS. Android is working perfectly.

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: (/Users/xx/.nvm/versions/node/v8.8.0/lib/node_modules)
    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1
global packages:
    cordova (Cordova CLI) : 6.5.0 
local packages:
    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : android 6.3.0 ios 4.3.1
    Ionic Framework    : ionic-angular 3.8.0
System:
    Android SDK Tools : 26.1.1
    ios-sim           : 6.1.2 
    Node              : v8.8.0
    npm               : 2.15.12 
    OS                : macOS
    Xcode             : Xcode 10.3 Build version 10G8 
baumwehn commented 5 years ago

ionic info updated. the built was made on that machine.

StefanRein commented 5 years ago

@baumwehn Can you update the ionic-angular package and the CLI?

In our app I did not notice these kind of problems. I testet right now with an iPhone X. So what do you mean by "randomly". Often? Rarely? How often or rarely exactly?

Which Device did you test on? Which iOS version was on it? Does it happen in the Safari Browser?

Which type of input is it? Numbers? Or Text? Password? Did you put a regex in it, so he would pop up the numbers keyboard?

Can you reproduce it in the simulator? Can you provide a small repository for this?

baumwehn commented 5 years ago

@StefanRein We tried to reproduce the bug, but it is rarely possible to find a pattern. Nevertheless it only occurs on iOS.

I have made a video of the bug: https://www.youtube.com/watch?v=NpL_39yJYNg&feature=youtu.be

The project repository is https://github.com/MathCityMap/O1-MCM-mobile-App

I cannot provide a smaller repository right now.

StefanRein commented 5 years ago

@baumwehn Did you try to log the output from the native Keyboard all the chain up to cordova (objective C) to JS up to Ionic / Angular / your application?

I would log everything and check where it happens. Visually you press the 6. So maybe it gets also up to the JavaScript world and hopefully your application or ionic prevents the 6 coming into your input field.

If I have time this weekend, I'll take a look into this

Edit: But I should reproduce it, by trying this out .. about 10 - 15 times? Or 20? Did you try this in the simulator?

Not that your screen on your device is just broken or the touch area :))))))))

StefanRein commented 5 years ago

@baumwehn I could not reproduce it in the simulator. Can you reproduce it in the simulator? Then tell me which Device and how to get there. I tried different things, but could not get there. By "how to get there I mean"

E.g. Open application (maybe there already goes something wrong, how do you detect the language?), click the plus button, type in numbers and characters until you cannot press the 6.

Or did you do something different in between?

Sometimes, when you don't catch JS errors.. it can lead to really weird effects. For example: We had somewhere a bug and if you would go there and the exception was thrown the application sometimes rendered only half and other really really weird behavior was going on, which I never have seen before. Can it be, that you click somewhere around and you have another bug which throws such an exception? You could verify this by connecting your phone with the safari developer console.

Your video started from somewhere in the middle. So right now I suspect your application or your device.

Edit: Also tell my how you deploy on your app? Usually I deploy for testing like that:

ionic serve and then ionic cordova build ios --no-build --prod to copy the artifact into the Xcode project.

baumwehn commented 5 years ago

Thank you for your response. I will try to create a log file for you.

MartinKleikamp commented 4 years ago

Could you find a solution? I have exactly the same problem and no logs appear.

By the way, great app!