Closed AngelaRg closed 5 years ago
CC @jcesarmobile @manucorporat.
I am having same issue! Any updates yet?
I must say now that I updated to cordova 9.0.0 cordova ios 5.0.0
node v10.15.3 npm 6.9.0
the keyboard problems with autofocus and viewport seem to have been solved. Something in the update did the trick.
However, the same long error message about NSLayoutConstraint still pop up in the log every time I click an input field, just as it was shown in the demo project.
For now it is no longer critical, the app works fine, but it does look like something's not quite right.
Any Solution?
Mine started doing the same at the same time as automatically scrolling to the top of the page on focus/blur. Seems like in iOS12 thing.
Having the same problem. My login button was not able to press after the keyboard close
Closing as the reporter said it was solving after updating and I couldn't reproduce on the sample app.
The problem about the views being wrong (i.e. buttons not clickable) was a WKWebView bug that was workarounded on cordova-plugin-ionic-webview
long ago https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/176
The NSLayoutConstraint errors are really Apple bugs, not our fault, nor we can fix them, but they are harmless.
FWIW, I ran into OP's runtime errors myself in iOS 12 on various iPad models, however they do not occur in iOS 13 (beta), at least not so far.
I'm seeing a lot of those errors on iOS 13 and for me it's causing the cursor to be gone from text elements. Anyway to workaround it?
Hi, My app is currently still using ionic 3, and I noticed a problem on the iOS version: Whenever I tap an input field (for the first time in its view) I get a huge error log about conflicting NSLayoutConstraints and one being broken.
This apparently seems to have no side effects (everything keeps working fine). However, now I have a new page in which i run programatically “this.input.setFocus()” when user taps a button, and it is NOT working the first time. After first fail, then it works fine every other time. This of course is not nice for the user.
Also, in any scroll view, whenever this constraint is broken, the scrolling/clicking is messed up. the viewport stays as if the keyboard were still up. And you cannot click on the lower part of the screen. Sometimes it gets fixed by tapping in random places.
I know I had face a similar issue a while ago but the solution was to switch to the cordova-plugin-ionic-keyboard and cordova 8.1.2 …I am still using this configuration. (I believe it also happens with cordova 9.0.0)
This is the log:
This is my ionic info: @ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1 global packages: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
local packages: @ionic/app-scripts : 3.2.0 Cordova Platforms : android 6.4.0 ios 4.5.4 Ionic Framework : ionic-angular 3.9.2
System: ios-deploy : 1.9.2 ios-sim : 5.0.13 Node : v6.10.2 npm : 5.10.0 OS : macOS Xcode : Xcode 10.2.1 Build version 10E1001
I was able to reproduce the error (in a simpler way) in this project: https://github.com/CesarRubenAlejandro/IonicDemoAppKeyboard