Comments (12)
Hi @cwkerk.
The "Show" method only accepts 4 parameters like this:
webview.Show(YOUR_URL [string], SUCCESS_FUNCTION [function], ERROR_FUNCTION [function], SHOULD_SHOW_LOADING [boolean]);
Best regards!
from cl.kunder.webview.
Thank you for reply.
However, after I change into "browseWebView.Show("https://angularjs.org",function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);", it still not working
from cl.kunder.webview.
I wonder why the following code doesn't work:
mainApp.browseWeb = function(address){
if(navigator.connection.type != Connection.NONE){
var browseWebView = new webview();
browseWebView.Show(address, function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);
alert('The web view is created');
}
else alert('Browse error : No network connection');
}
from cl.kunder.webview.
What operating system did you try your code?
The mainApp.browseWeb is called in your code?
from cl.kunder.webview.
iphone 6s plus.
May I know is this plugin work for all ios version?
from cl.kunder.webview.
We use it daily and we don't have issues.
Please let me check it out
from cl.kunder.webview.
May I have our example code for this plugin?
Just for reference, maybe I may find the bug with that help.
from cl.kunder.webview.
I did create a new ionic project and wrote the following code:
$scope.click = function(){
document.addEventListener('deviceready', function(){
webview.Show('http://www.google.cl', function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);
}, false);
};
With or without device ready event works fine.
from cl.kunder.webview.
I see.
I wonder if this plugin only works with ionic framework?
I didn't use it since it is quite heavy to build app in my macbook.
from cl.kunder.webview.
@cwkerk
It should work with any framework.
If you checkout the js code, you can see that there isnt references to any framework.
Maybe your problem is your are constructing a webview
object, but webview
class only has static methods
Look at @sebalagos90 code. It uses webview.Show()
directly.
But in your code:
var browseWebView = new webview();
browseWebView.Show(address, function(){alert("WebView Success");}, function(){alert("WebView Failure");}, true);
from cl.kunder.webview.
By the way, how can I make multiple webviews using this plugin?
from cl.kunder.webview.
@cwkerk you can make multiple webviews on iOS
but not in Android
In order to make it work on Android
, you will need to change the code a little because there are some static
variables as described in #3
from cl.kunder.webview.
Related Issues (20)
- App won't go into debug mode HOT 1
- Communication between webviews HOT 4
- Cordova-second-webview not working
- [IOS][Android] how to set width and height to the new webview HOT 2
- Can I have a transparent extra webview? HOT 1
- [iOS] Upload Img cancel button is closing web view [bug] HOT 3
- error while installing
- No response on iOS Simulator? HOT 1
- Posting parameters HOT 1
- support for ionic angular 2 HOT 2
- Accessing Plugins HOT 4
- iOS internal url HOT 2
- Launches in portrait
- iOS Issues HOT 2
- Further handle when received 401 response
- the plugin automatically adds the prefix file:///android_asset/www/ HOT 3
- NPM release
- save state in multiple webviews
- Android can't use cordova plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cl.kunder.webview.