Completed
Last Updated: 20 Mar 2020 15:04 by ADMIN
Release 2020.1.313 (R1 2020 minor release)
Marc
Created on: 03 Mar 2020 15:35
Category: UI for Xamarin
Type: Feature Request
8
Xamarin.Forms 4.5 (or later) Required

April 2020 Deadline

Apple will no longer accept applications published with anything less than Xamarin.Forms 4.5 after April 2020.

This is due to the UIWebView flag that is in Xamarin.Forms 4.4 and earlier

ITMS-90809: Deprecated API Usage- Apple will stop accepting submissions of apps that use UIWebView APIs starting from April 2020 . 

 

Solution

Please visit this documentation for full explanation. Just to share the highlights, Telerik UI for Xamarin will need to:

  • Xamarin.Forms 4.5 or higher – Pre-release versions of Xamarin.Forms 4.5 can be used.
  • Xamarin.iOS 13.10.0.17 or higher – Check your Xamarin.iOS version in Visual Studio. This version of Xamarin.iOS is included with Visual Studio for Mac 8.4.1 and Visual Studio 16.4.3.
  • Remove references to UIWebView – Your code should not have any references to UIWebView or any classes that make use of UIWebView.
7 comments
ADMIN
Lance | Manager - Technical Support
Posted on: 20 Mar 2020 15:04

Hi Folks,

In the 2020.1.318 release (release notes), we implemented a change that will prevent an exception that was caused by a method missing in AndroidX.  This means you can now use Xamarin.Forms 4.5 for all the projects in the solution.

Target Android SDK Note

Although you can use XF 4.5, at this time we discourage targeting API 29. In your Android project setting, check the following values are set to Android 9 (API 28)

 

You can also use my attached project as a reference.

Regards,
Lance | Team Lead - US DevTools Support
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Attached Files:
ADMIN
Lance | Manager - Technical Support
Posted on: 20 Mar 2020 00:03

Hello Marc,

Thank you for clarifying, that is indeed an important distinction. Just so that it's extra clear for anyone visiting this thread in the future, let me break it out visually

April 2020 Deadline

Any new app referencing UIWebView APIs will be declined.

December 2020 Deadline

Any app updates referencing UIWebView APIs will be declined.

Regards,
Lance | Team Lead - US DevTools Support
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Marc
Posted on: 19 Mar 2020 23:57

Hey Lance,

Just a clarification.   Apple will stop accepting new apps next month and updates in December.   

https://developer.apple.com/news/?id=12232019b

Thanks,

Marc

ADMIN
Lance | Manager - Technical Support
Posted on: 19 Mar 2020 12:40

Hello Sadanan,

Telerik UI for Xamarin does not use UIWebView. It is actually a vestigial piece of code that was accidentally left in Xamarin.Forms. Microsoft removed it in XF 4.5.

Apple was going to stop accepting submissions in April 2020, but they moved that to December 2020. You can see this mentioned in an email screenshot here.

Regardless, we have been working hard to make sure everything works in our release so you can target Xamarin.Forms 4.5 and not be blocked by that issue. Make sure you're subscribed to this ticket to see when the status changes from In Development to Completed.

Regards,
Lance | Team Lead - US DevTools Support
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Sadanan
Posted on: 19 Mar 2020 06:37

Does Telerik controls uses UIWebView in their code directly? What about those having existing apps using telerik controls but their license is expired. Does it mean they can not submit any updates to their app. We can upgrade to XF 4.5 but how will we update Telerik controls to not use UIWebview. This is such a deal breaker and looks like no other option except to renew license or remove using telerik controls. 

ADMIN
Lance | Manager - Technical Support
Posted on: 04 Mar 2020 15:32

Hi Ros,

That situation in unrelated to XamarinForms version or this feature request. I will provide an answer below. However, if you have any further questions, please open a new ticket so that we can better assist you.

Understanding Linker Behavior and LinkSkip

The reason you're seeing that problem is because when you set the linker to LinkAll, the compiler will strip out all the external code that you do not explicitly reference. This means any Telerik controls will also be stripped out, leading to what you see.

Full linking (LinkAll) is not supported in UI for Xamarin, as the compiler will remove all the external code that isn't directly referenced by your code. You can attempt to avoid this by instructing the linker to skip the external controls. See the Microsoft documentation here https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/linker?tabs=windows#skipping-assemblies

Specifically, add a --linkskip argument for every Telerik assembly that your project is using. For example, if you're only using RadBorder, then you would have the following assembly references that need to be skipped

--Telerik.Xamarin.iOS --Telerik.XamarinForms.Primitives

You will need to add a linkskip argument for every assembly separately. The Microsoft documentation I linked to above explains in more detail.

Regards,
Lance | Team Lead - US DevTools Support
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Ros Jason
Posted on: 04 Mar 2020 06:41
I also tried the linker behavior to link all and my UI got destroyed.