question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I opt into WKWebview?

See original GitHub issue

I am trying to use WKWebview instead of UIWebview.

This docs don’t seem to mention how to turn this on?

In the react docs it says to set useWebKit to true. I searched this repo for the string useWebKit with no results and I tried setting it anyways but I am still getting deprecation warnings from Apple about UIWebview

Can someone please tell me how to opt into WKWebview?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jisaackscommented, Jan 3, 2020

@Naturalclar thanks for the comment.

I just updated from 7.4.3 to 8.0.2 and I am still getting the error. When I deliver the build to App Store Connect I get the following email from apple:

Dear Developer,

We identified one or more issues with a recent delivery for your app, “App Name” 0.0.3 (1). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

After you’ve corrected the issues, you can upload a new binary to App Store Connect.

Best regards,

The App Store Team

1reaction
ankhzetcommented, Jan 22, 2020

@jisaacks @Stephen2 Expo and some of it’s packages still internally do reference deprecated UIWebView. Expo team is planning to remove those references completely in SDK 37+.

For now it’s safe to use the library despite deprecated code being referenced, Apple just reminds you, that it’s support would be removed in the next versions of iOS and you might need to update your code accordingly (the most important parts of the message from Apple are Your delivery was successful and but you may wish to correct the following issues in your next delivery).

Read more comments on GitHub >

github_iconTop Results From Across the Web

allowsLinkPreview | Apple Developer Documentation
In iOS, this property is available on devices that support 3D Touch. ... navigation switches the user from your app to Safari, it...
Read more >
Send device token to WKWebView using evaluateJavaScript
So my entire Swift app is built using a WKWebView. I'm trying to prompt the user to opt into push notifications, and then...
Read more >
How to use WKWebView? - MSDN - Microsoft
To opt-in to using WkWebView add the following to the AssemlyInfo.cs file of your iOS C# project file: [assembly: ...
Read more >
Creating a simple browser with WKWebView
You need to turn the string into a URL , then put the URL into an URLRequest , and WKWebView will load that....
Read more >
App-Bound Domains - WebKit
Many applications use WKWebView as a convenient way to display websites without requiring users to leave the app, referred to as in-app ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found