Not loading web content with WKWebView - swift

in my app I have migrated from UIWebView to WKWebView. Everything works perfectly but I have a problem with one icon.
This is the icon displayed by UIWebView:
And this is the icon displayed by WKWebView:
The Web site displayed in my webView is optimized for mobile device but
the implementation of the site is not my work. My question is:
Why there is this difference from UI to WK?
It is because I have to set some settings in WK or this problem depends on the implementation of the web site?

Related

There was a css problem with the flutter_webview_pro package

enter image description here
I created the app using flutter_webview_pro package. The css menu at the top of the web page in the web view does not work properly. What kind of problem?
Below is how it works normally in the Chrome browser.
enter image description here
It does not work normally only in the webview.

How to Make Links Work in WKWebView and how to correctly format words

I am coding a simple app in Xcode and I have ran into a problem. I can not get links to work on the mobile app that go to other links. For example, if I click on the Twitter button at the bottom of the webpage nothing happens, I want that button to lead to the desired link it was supposed to go to. Also, the words in a page on the site are lined up in a vertical column, and I would like to know how to make the text look better in terms on formatting it correctly. Here is a picturePicture Of Simulator The Code
[Image]
Seems like you're adding your WKWebView the right way and the page is loading fine. The problem with the text is actually coming from the CSS of the site as I have the problem in Safari on my phone as well, so if you are the web admin of the site I'd fix it there.
Did you try if the button you are talking about is responsive when accessing through Safari on your phone/simulator? WKWebView does not have a loading bar and it seems "unresponsive" sometimes even though the sites are loading in the back.
When adding your WebView implementation buttons like the privacy policy on the site work fine for me.

Swift - Load WebView with customized html

I created an responsive web app.
Next i created a UIWebView where my responsive web app is loaded.
My question:
Is it possible to add custom-code to my UIWebView?
Greetings and Thanks!

iPhone webClip browser app suggestions

I want do build an webclip browser app. I will display all my webclips in to a scroll view when the user taps on one I want to add that web clip to the iPhone.
How to I tell to the iOS to install that webclip from my app?
Any docs, example, tutorials are welcome.
If by webclip you mean adding a link to a web address to the home screen then you can't do that programatically.
I think only Safari can do this so you would have to open the destination webpage in Safari and instruct the user how to add it to the home screen.
See this for a discussion on the feature. Javascript for "Add to Home Screen" on iPhone?

Link Target in iPhone Based web app

I am building a web application that is to be run by adding the app to the home screen. Currently it has a list of users, clicking on a user takes you to a detail screen for that user and on that screen is a notes link to take the user to another screen with a grid of notes and a text box to add more notes.
When any links are clicked/tapped, the link is opened in Safari, not the current full screen Safari instance. I tried setting the target of the link to _self, but this had no effect.
Any ideas?
I learned a full screen iPhone webapp can only be a single web page. Any link you try to open will launch Safari instead of replacing the current page. To combat this, I used asp.net postbacks with panels to hide/load/show requested data.
I use target="_webapp" and it works just use for example <a href="http://your.link" target="_webapp"> and it gonna open the link without exit landscape (full screen) i dont know why but with some of my webapps works and sometimes dont.