I am developing an android native app in which I have already embedded in a
CordovaWebView in a fragment. Now, I want to embed in another
CordovaWebView with a different configuration than the first one in a different fragment. Thus, I need to define a separate
config.xml file and a separate
While there is documentation on how to use multiple Cordova webviews in iOS, no information is provided from phoneGap or Cordova when it comes to Android. Has anyone solved this?
I am using cordova-android 6.3.0.
Unfortunately this is not currently possible with the way the CordovaView is architected.
There is no way to differentiate between cordova based webview native<->js calls of different webviews.
You can however use a brand new activity to achieve this ...
For a plugin that does this.
Note it only supports iOS and Android.
Thanks for the answer! I have figured out a way to do it.