- Home /
UnityAds has UIWebView which has been deprecated by Apple
UnityAds has UIWebView it's been deprecated by Apple since iOS 10.0. When submitting to App Store it'll complain in App Connect about using a deprecated API.
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
Have to update to new API using WebKit's WKWebView, or what I have done is removed UnityAds from UnityFramework when submitting to AppStore. Unity, any idea when this will be updated? If so needs to be done, Apple will stop accepting submissions soon with this deprecated class.
Note:
In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView. Additionally, consider setting the WKPreferences property javaScriptEnabled to NO if you render files that are not supposed to run JavaScript.
Answer by jnoland52 · May 11, 2020 at 08:19 AM
I removed Ads and I am still getting rejected by Apple. How can I fix this? @andymads ,I removed Ads as a Package and I am still getting rejected by Apple.
Well you need to track down what in your app is using UIWebView.
I did this recently by just uploading lots of builds with a single plugin integrated to see which ones caused the problem. You don't need to make an app that runs. I just used an empty Unity project plus a different third party plugin each time and uploaded to Apple to see what email I would get back.
Answer by uniLogix · May 28, 2020 at 11:50 PM
I have downloaded Unity 2018.4 LTS and upgraded project from Unity 2018.3 and it got fixed and submitted with success.