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

    1_1527552863228_Screen Shot 2018-05-29 at 03.10.11.png
    0_1527552863227_Screen Shot 2018-05-29 at 03.10.28.png


  • Onsen UI

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


  • Onsen UI

    The cordova variable is only available if you package the app using the cordova command, so it’s not normally available if you are testing in your browser. I know InAppBrowser does support the browser platform, but I think for that to work, you’ll need to serve your site using cordova 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.


Log in to reply