Maybe a using/namespace problem with InAppBrowser
-
I cant access
window.open = cordova.InAppBrowser.open;
or with
window.open = window.plugins.InAppBrowser.open;
How can i do use InAppBrowser with Onsen UI + Vue.Js
-
Does this actually cause issues when you build your app? I wouldn’t be surprised if an IDE could not resolve references to Cordova plugins due to the way they’re designed.
-
@asialgearoid thanks for your reply. But its not a IDE problem. Because Chrome console is says: “ReferenceError: cordova is not defined”.
-
The
cordova
variable is only available if you package the app using thecordova
command, so it’s not normally available if you are testing in your browser. I knowInAppBrowser
does support thebrowser
platform, but I think for that to work, you’ll need to serve your site usingcordova serve
. How are you currently serving it?
-
@asialgearoid Thanks for your reply. I’m sorry for the delay.
I will try it Cordova Serve. I tried it is Monaca Serve.
At the same time, i compiled and packed live build on a real Android and Iphone.
Still it doesnt work.