Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

UIWebview: deprecated API usage ITMS-90809 #49

Closed bartsg closed 4 years ago

bartsg commented 5 years ago

As you may have heard, Apple is sending out warnings to developers regarding the deprecated UIWebView (see: https://forums.developer.apple.com/thread/122114). The exact deadline for this is still unknown.

This means that the plugin shouldn't use the custom NSURLProtocol solution anymore. Would the URL interceptor still work properly without the WKURLSchemeHandler on iOS < 11?

m-abs commented 5 years ago

Hi @bartsg

Thank you for the heads up.

No, unfortunately the URL interceptor will not work for iOS < 11 without UIWebView.

This is pretty worrying as we still need to support older iOS versions in our app.

leganz commented 4 years ago

Are there any intentions to remove UIWebView Support so apple won't trigger this notification? I tried to avoid it by choose the app target => 12.0. But it did not work.

m-abs commented 4 years ago

@leganz Yes, we'll have to remove support for UIWebView soon.

Unfortunately that will remove support for iOS <11 for from this plugin, since UIWebView is the only way to support the custom schema x-local://.

As I understand it, this is still just a warning not an error, so it shouldn't prevent you from publishing.

m-abs commented 4 years ago

I've just released v6.2.0 that removes support for UIWebView.

The plugin can still be used on iOS < 11, but x-local:// resources cannot be used by those versions of iOS.

Rho-bur commented 4 years ago

Hi @m-abs , I am on CLI: 6.5..0

P.S. Sorry to reopen, I thought it makes more sense than creating a new but identical issue. P.S.2. Grep'ed fror UIWebview usage and it seems it is only used in comments !? Could be this the base for Apple's warning?