IOS build failed for IOS 14 - Property 'userAgent' not found on object of type 'CDVViewController *'

Hey guys!

Hope everyone fine in the pandemic situation.

Coming to the point I am getting these errors from 2 days onwards. Tried in google and updated WebView.
I think these errors are from WebView for the IOS. Is there any solution to get rid of these errors?

Thanks in advance.

Errors:

  • property ‘userAgent’ not found on object of type 'CDVViewController ’ wkWebView.customUserAgent = ((CDVViewController) self.viewController).userAgent;

  • use of undeclared identifier ‘CDVUserAgentUtil’ [CDVUserAgentUtil releaseLock:vc.userAgentLockToken];

1 Like

cordova-ios 6 removed those methods, you’ll have to update the plugins using that code to their latest version

1 Like

Hello,

With Ionic 3 and cordova-plugin-ionic-webview@5.0.0, ipad is neither recognize as tablet neither ios , see on Platform not recognizing ios, and under ios14, the solution above doesn’t worked. Do you ave any idea to correct it without changing ionic 3 to latest v4 or v5 ?

yes i have same issue now.
any one have solution for ionic 3 and cordova-plugin-ionic-webview@5.0.0 ?

Thanks