-
Notifications
You must be signed in to change notification settings - Fork 13.5k
iOS 11 Floating Cursor Above Ion-SearchBar #13013
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
Comments
Hello! Thank you for opening an issue with us! Installing the WKWebView plugin took care of the issue for me. https://github.com/ionic-team/cordova-plugin-ionic-webview#installation-instructions. Please give that a try and let me know if that took care of it for you. Be sure to have a look at this doc as well: http://ionicframework.com/docs/wkwebview/ Side Note: This seems to be weirdly specific to the iPhone 6s. Could not duplicate on my iPhone 7 nor on any sim I tried other than iPhone 6s. Very strange. Thank you for using Ionic |
@kensodemann I have the same issue here the cursor is not stable when foucing on the text input or scrolling the page. WKWebView plugin installed and configured, but the problem still on IPhone 6s and IPhone 7 plus Any advice please ? |
I'm having trouble getting my app to run with that plugin installed. I looked at the additional documentation you provided, but not having much luck. Here is the error I get in xcode console
It seems to be pointing to this section of code:
|
@mino922 are you fix your issue ? |
@mqasem92 I am still having this issue. I am unable to run my app with the WKWebView plugin installed, so I cannot validate that this solves the issue. The app builds fine, but fails to run on the device. Sorry, I didn't mean to close the issue! |
@mino922 - is that happen in the sample app for you as well, or only in you actually application? It did not happen for me in the sample app. If it does not happen in the sample app for you either but does happen in your app, then we have some work to do to determine what specific difference(s) between the apps lead to the issue. Regardless, you should log an issue in the https://github.com/ionic-team/cordova-plugin-ionic-webview repo about that. |
@kensodemann Yes, u're right. |
@kensodemann it only happens in my actual app. Works fine in the sample I provided. Any thoughts on where I should begin my troubleshooting? I will also post on the repo you provided. Thanks. |
Hmm, Im not able to replicate on my end using the lates wkwebview plugin and the nightly version of Ionic. Could you test this and confrm @mino922 |
There is an issue with wkwebview plugin and cordova-plugin-background-mode. My app requires cordova-plugin-background-mode, but I did a quick test and removed that plugin and the floating cursor issue went away. However, with wkwebview enabled I am seeing other issues. Is there a solution to this problem that does not include the wkwebview plugin? |
I started facing this issue after applying |
@Tyler-Darby do you have a sample project? |
I found a bug in my code, which was causing some of the issues I was seeing with wkwebview enabled. That is now resolved. The floating cursor issue is no longer an issue. I just have a problem using wkwebview and cordova-background-mode in conjunction. I opened an issue on that page, but have yet to hear anything. |
the background plugin has a PR that should address this, but the plugin is not using a public/documented APIs so there's a chance Apple will reject an App with it or even break when Apple releases a new OS version. |
@mhartington What do you mean by PR? Are there any alternatives to the background plugin? |
@mhartington I'll try to repro in a fresh project but right now all I have is my company project. I'll get back on that in a bit. @mino922 What did you change to resolve this issue? |
Any luck on that demo @Tyler-Darby ? |
@mhartington When I upgraded to WKWebView the problem resolved itself. I can try to repro on UIWebView at some point if you need me to but it seems that WKWebView solved it for me. |
Please also address this problem on UIWebView as WKWebView does not work well with the search bar and hence prevents me from using WKWebView at all. Specifically, WKWebView prevents setting focus programmatically (e.g. see #11453) - some has made various hacks and patches to make it work, but it still is not possible in my use cases. |
I have the same problem with UIWebView, and viewport-fit=cover. I cannot use WKWebView because it has issues with resizing pictures. |
@ourarash WKWebview is going to be a hard requirement moving forward as UIwebview has some serious issues involving the safe-layouts values we now use in the framework |
Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#891 |
Uh oh!
There was an error while loading. Please reload this page.
Resources:
Before submitting an issue, please consult our troubleshooting guide (http://ionicframework.com/docs/troubleshooting/) and developer resources (http://ionicframework.com/docs/developer-resources/)
Please make sure you are posting an issue pertaining to the Ionic Framework. If you are having an issue with the Ionic Pro services (Ionic View, Ionic Deploy, etc.) please consult the Ionic Pro support portal (http://support.ionicjs.com)
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When I click on an ion-search bar, the cursor appears to float above and is not inline with the input area.
Expected behavior:
The cursor should be inline with the input field. This was working correctly in iOS 10, but not longer in iOS 11
Steps to reproduce:
Click on the ion-searchbar in the project below.
Here is a video demoing the problem on an iPhone 6s:
Related code:
Sample Project
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: