D
D
dantedelvengo2019-03-13 16:46:31
JavaScript
dantedelvengo, 2019-03-13 16:46:31

Why doesn't navigator.app.loadUrl work in vue.js cordova app?

Good time! I ran into a problem, the function of opening a link in the default browser of the device from the application on vue.js in cordova 5.4.1 does not work (I installed a later version to mount it under android 4.0.1)
, so I try to call it when I click - when I test in the browser, of course it doesn’t gives effect, but causes an error in the console. this is the native application method.

<div onclick="navigator.app.loadUrl('http://google.com/', {openExternal : true});">Перейти на сайт</div>

but after building via cordova build android in the application, when the button is clicked, nothing happens at all, what should I do in such a situation? install some plugin?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question