Giter VIP home page Giter VIP logo

cl.kunder.webview's People

Contributors

arturokunder avatar ashmartian avatar busenm avatar cvuser0 avatar davidgovea avatar jrobichaud avatar lhpaul avatar rmendozah avatar sebalagos90 avatar xchopox avatar yvera-kunder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cl.kunder.webview's Issues

Android can't use cordova 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

Further handle when received 401 response

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

Can I have a transparent extra webview?

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.

Launches in portrait

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.

NPM release

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.

error while installing

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..

No response on iOS Simulator?

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?

iOS Issues

  1. Webview launches with "Success" but only with a white empty page which then launches Safari.

  2. 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.');
    }
);

Call to Camera plugin from second webview, no response

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!

Accessing Plugins

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?

Posting parameters

How to post parameters in webview. Like in android we have webview.postUrl(url, postData), do we have something in this plugin?

Android: No multiple webviews

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!

iOS internal url

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!

Cordova-second-webview not working

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?

Communication between webviews

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.

Cordova-second-webview not working

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.