-
Notifications
You must be signed in to change notification settings - Fork 39
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-second-webview not working #16
Comments
Hi @cwkerk. Best regards! |
Thank you for reply. |
I wonder why the following code doesn't work: mainApp.browseWeb = function(address){ |
What operating system did you try your code? |
iphone 6s plus. |
We use it daily and we don't have issues. |
May I have our example code for this plugin? |
I did create a new ionic project and wrote the following code: |
I see. |
@cwkerk Maybe your problem is your are constructing a Look at @sebalagos90 code. It uses var browseWebView = new webview();
browseWebView.Show(address, function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true); |
By the way, how can I make multiple webviews using this plugin? |
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?
The text was updated successfully, but these errors were encountered: