Skip to content
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

UIWebView deprecated #136

Open
NeedNap opened this issue May 15, 2020 · 9 comments
Open

UIWebView deprecated #136

NeedNap opened this issue May 15, 2020 · 9 comments

Comments

@NeedNap
Copy link

NeedNap commented May 15, 2020

I'm using the WKWebView component version of the library, but when I deploy the app to the Apple Store I get the following error: ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

How can I remove all UIWebView references from the library?
Thank you

@georgenimber
Copy link

There are version available if you search without UIWebView.
But using these , I can't connect as I get negotiation issue. Not sure what needs to change in the server side.
Any ideas?

@NeedNap
Copy link
Author

NeedNap commented May 15, 2020

I managed to get it working by changing the library code by removing all references to the UIWebView object

@TahirTahir
Copy link

TahirTahir commented Jul 8, 2020

Hi @NeedNap I am going through similar problem, and i can't seem to remove references to the UIWebView.
Can you please share your code?
Thank you

@NeedNap
Copy link
Author

NeedNap commented Jul 8, 2020

This is my fixed code
SwiftR.zip

;)

@TahirTahir
Copy link

Thanks A lot.
For some reason the code was not working, maybe commenting UIWebView messes up with some features.
I had to convert UIWebView to WKWebview everywhere.

@NeedNap
Copy link
Author

NeedNap commented Jul 11, 2020

It's very strange: the code I posted works very well for me (I already removed all UIWebView references) but I don't use the useWKWebView flag to true because my SignalR is not the .NET Core version.

@andyarus
Copy link

config.setValue(true, forKey: "allowUniversalAccessFromFileURLs")

Screenshot 2020-11-26 at 05 50 03

@tayalva
Copy link

tayalva commented Mar 17, 2021

has anyone else had trouble with WKWebView not connecting properly/timing out after 40 seconds or so? UIWebView works great, WKWebView seems to have connection issues

@Ali-El
Copy link

Ali-El commented Feb 19, 2022

I have discovered that using @NeedNap solution (downloaded the .zip you shared, thanks a million btw) works. I have a .Net self-hosted server running in windows 10 coded in VB.net. At first, the connection wasn't being established, I thought it was the client at the fault - which is an iOS app using swift and UIKit, and after hours of researching turns out if your server is on your local network then use the local IP address of the machine running the server instead of the global IP. Also, make sure all your ports are accessible. My issue was the device being on the same wifi as the server had to communicate on a local IP, and when I turned off the wifi on the test device then I had to switch back to the global IP. I hope this helps ✊🏾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants