A
A
Alexander Grishin2015-09-30 16:37:20
JavaScript
Alexander Grishin, 2015-09-30 16:37:20

Interaction of cordova 5 functions with loaded site, how?

onDeviceReady: function() {
            var ref = cordova.InAppBrowser.open('http://site.ru', '_blank', 'location=no');
            ref.addEventListener('loadstart', function(event) {
                ref.executeScript({ code: "window.isCordovaApp=true;" });
            });
        };
        function getImage() {
            anyCordovaPlugin();
            alert('aby action');
        }

...
In http://site.ru itself:
<button onclick="getImage();">Upload a Photo</button>

Does not work.
How to call the functions of a plugin in Cordova inside a loaded site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Grishin, 2015-10-14
@beerdy

Probably not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question