kunder-lab / cl.kunder.webview Goto Github PK
View Code? Open in Web Editor NEWThis cordova plugin enables you to open a second webview
License: Apache License 2.0
This cordova plugin enables you to open a second webview
License: Apache License 2.0
when i want to create a new webview with this plugin and call show() function with a URL like https://www.google.com.
the app will show a error alert "network error.(file:///android_asset/www/https://www.google.com)", could you give some advice why the prefix file:///android_asset/www/ will added front of the URL automatically?
[Android] Any way to open multiple webviews, and save state in everyone, in order to reopen them directly?
Hi! I am trying to open an internal url in a different webview for ios platform. I wrote:
webview.Show("file:///Staging/www/tam.html");
But i got the error:
File not exists.
What i was doing wrong? Thanks for your patient!
any demo to work with ionic 2 , angular 2?
thanks..
I'm trying to install this plugin on my phonegap project
so on cli, I did
$ phonegap plugin add github.com/kunder-lab/cl.kunder.webview.git
But then..
I get the error
Error: Invalid package.json
it refuses installing because of no package.json in the repository!
So I'm writing one myself..
How to post parameters in webview. Like in android we have webview.postUrl(url, postData), do we have something in this plugin?
It is not working on iOS Simulator.
To be more specific, it's working in a bit strange way.
When I trigger
webview.Show(url);
on javascript,
nothing happens.
but then, when a soft-keyboard appearing event happens, (i.e. clicking on the input box to type in something)
the app restarts, then shows the new webview with the URL.
Do you have any idea why?
Hi!
I've found other bug in Android. If you call from 2nd webview to an external action (app pause/resume), like navigator.camera.getPicture(success, fail, options), you'll get this error on resume:
"Got an activity result, but no plugin was registered to receive it."
The app lost thread and can't manage response.
Can you help me to find (and think) where is the bug?
Thank you very much!
WebView launches in portrait although device is landscape and it won't rotate. Only tried this on Android. Device Nexus 9.
Edit: same case on iPad too..
I've edited the plugin xml via Android Studio to change the orientation to landscape but each time you build via cordova this defaults back to portrait on android manifest.
Can we make this optional please so we can launch portrait / landscape.
I try to use "cordova-second-webview" plugin to create extra page for new webview by code below:
mainApp.browseWeb = function(address){
if(navigator.connection.type != Connection.NONE){
var browseWebView = new webview();
browseWebView.Show("https://angularjs.org","_blank", function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);
this.WebViews.push(browseWebView);
alert('The web view is created');
}
else alert('Browse error : No network connection');
}
However, I don't get it work even to open a webview. May I know why and how to fix it?
For dialogs, this plugin is excellent, but is there a way to make the background transparent?
<body style="background-color:transparent">
</body>
seems to have no effect.
Application won't go into debug mode when plugin is installed, removed and worked fine.
I haven't seen one, but is there a possibility of communication between the webviews?
The inappbrowser plugin has a form of limited communication but this plugin suits me better except the cross-webview communication.
Hi!
In iOS I can create and destroy multiple webviews without problem. But in Android, I can create multiple webviews but only destroy the latest. What I need to change to create/destroy multiple webviews in Android?
Thank you for your plugin!
Hi, I'm trying to use a webview to load an external URL and to let that loaded page/js invoke a plugin.
I can load the page simply enough: webview.Show(URL), and it correctly displays and can load JS and CSS - basically works as expected. I've included in the directory of my HMTL the cordova.js file. This makes the "cordova" varable present and even cordova.exec. But, when I try this:
cordova.exec(null, null, "Vibration", "vibrate", [1000]);
It doesn't produce any errors, but nothing vibrates either. I've tried other plugins as well. All are included in my calling application. I've even included the other files/dirs of a cordova app: cordova_plugins.js, cordova-js-src, & plugins but nothing happens.
Does anyone have a suggestion of what I might be missing? Or an example of where this works?
This is a problem regarding webview plugin.
The scenario as below:
If we want to open an URL which need the authorization, server side will return a 401 response.
In this case, the webview be rendered as a blank page rather than alert a dialog to ask user input the authorization information (User ID, password) which just like what the mainstream browser do.
Is there an existing solution to cover this scenario or we have to make the secondary development to handle this case if we use the plugin
I use this plugin in my ionic3 project,after open second webview can invoke cordova plugin as expected on ios
but android not work。
error:Channel not fired:onCordovaInfoReady
Webview launches with "Success" but only with a white empty page which then launches Safari.
After closing the webview, you cannot open it again.
webview.Show(
url,
function onSuccess(){
console.log('Success');
app.hideLoading();
},
function onError(error){
console.log('Error opening presentation.');
}
);
I try to use "cordova-second-webview" plugin to create extra page for new webview by code below:
mainApp.browseWeb = function(address){
var browseWebView = new webview();
browseWebView.Show("https://angularjs.org","_blank", function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);
this.WebViews.push(browseWebView);
alert('The web view is created');
}
else alert('Browse error : No network connection');
}
However, I don't get it work even to open a webview. May I know why and how to fix it?
Hi kunder-lab team,
Thanks so much for this plugin! It has become indispensable for our cordova projects.
We're currently consuming the plugin via git directly - would it be possible to publish it to npm
? It does add another piece of overhead to the maintenance.. but it would be nice.
Thank you! Feel free to just close this if you disagree.
as the title show
I want to create another function called for example resize(width, height)
to control the width and the height of the new webview.
How we do this, any idea ????
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.