Tuesday, July 14, 2020

UIWebView Deprecation and Xamarin.Forms

Apple started sending following warning messages about UIWebView deprecation.

ITMS-90809: Deprecated API Usage - App updates that use UIWebView will no longer be accepted as of December 2020. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

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

To fix this issue  you can simply go to your iOS project, open the project properties and add this flag in the additional mtouch arguments field: --optimize=experimental-xforms-product-type this flag works together with the Linker Behavior set to SDK Only or All.

In the screenshot below you can see the end result in Visual Studio for PC
.


UIWebView Deprecation Fixed

That’s it! Now create a new build, submit it to the App Store and all is good.

For more detail go to this documentation from MIcrosoft.




No comments:

Post a Comment

Open default email app in .NET MAUI

Sample Code:  if (Email.Default.IsComposeSupported) {     string subject = "Hello!";     string body = "Excellent!";    ...