Cordova XWebView is a customized platform of Cordova for XWebView. It helps to reuse existing Cordova plugins with XWebView. You can easily create an XWebView plugin project which includes Cordova plugins by using Corodova CLI commands.
Cordova XWebView is based on Cordova iOS version 4.0.0-dev which is in developement currently. Some Cordova plugins may not work well with it.
-
It should not include HTML files in XWebView plugin, so use the
--copy-from
with an empty directory is recommended.cordova create Hello com.example.hello HelloWorld --copy-from=/an/empty/dir
-
Add the Cordova XWebView platform
cordova platform add https://github.com/xwebview/cordova-xwv.git
-
[Build the plugin]
Open the Xcode project in
platform/ios
directory or use CLI:cordova build ios
Becuase the target is a dynamic library, you can't run it on emulator.