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-fromwith 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/iosdirectory or use CLI:cordova build iosBecuase the target is a dynamic library, you can't run it on emulator.