Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova-plugin-inappbrowser does not work with latest cordova-ios 5.1.0. build fails with error "Unknown type name 'CDVUIWebViewDelegate'" #587

Closed
rajashekaranugu opened this issue Dec 2, 2019 · 3 comments

Comments

@rajashekaranugu
Copy link

rajashekaranugu commented Dec 2, 2019

Bug Report

This plugin doesnot support latest cordova-ios 5.1.0

when I use this plugin to build iOS app with latest cordova-ios 5.1.0 am getting build error, "Unknown type name 'CDVUIWebViewDelegate'"

Information

As every one is aware of the the deprecated API issue and warning email from apple in regards to usage of 'UIWebView' in ANY form in the App. I was trying to build the app using the instructions provided at "https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/"

-using cordova-ios 5.1.0
- then cordova prepare ios
-ionic-web-view 4.1.2
-@ionic-native/in-app-browser 3.1.0 - "https://ionicframework.com/..."

While building am getting errors, which is related to inAppBrowser.
Error: "Unknown type name 'CDVUIWebViewDelegate'". seems like this plugin still using UIWebview class.

  1. How can I solve this?
    Do I need to replace the above inAppBrowser Plugin with "@ionic-enterprise/inappbrowser".
    Am not on enterprise plan though.
  2. What are the differences between these two inAppBrowser plugins?
  3. Also am updating ionic-webView plugin from 1.2.1 to 4.1.2 and losing local storage, do we have
    any solution for this?

Really appreciate your help and time

Best
Raj

@breautek
Copy link
Contributor

breautek commented Dec 2, 2019

Duplicate of #583

But to quickly answer your question, inappbrowser still depends on UIWebview code and there is no official solution yet, but it is an issue that is known.

#584 may help you work around this issue temporarily.

apache/cordova-discuss#110 may peak your interest as well.

@breautek breautek closed this as completed Dec 2, 2019
@breautek
Copy link
Contributor

breautek commented Dec 2, 2019

Regarding @ionic-enterprise/inappbrowser you may need to consult with someone who is more familiar with ionic on how you can use a pending cordova PR. I'm not familiar enough with the ionic framework to tell you if the package can simply be substituted/merged.

Also note that there is no guarantee that PR will land in master.

@rajashekaranugu
Copy link
Author

@breautek thanks for the replay, sure will follow #584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants