InAppBrowser plugin doesn't work



  • Hi, I try to use InAppBrowser plugin with cordova, i want to open internal browser in my app, so i use this to achieve my aim:
    Firstly, i installed the plugin by typing this

    cordova plugin add cordova-plugin-inappbrowser
    

    Then i wrote this method which i call by button click

    visitMyWebsite() {
         //cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); // this works
         openURL('https://google.com'); // this doesn't work
      }
    

    If i call cordova.InAppBrowser.open directly this works, but not happens if i call openURL after i installed this plugin, where i was wrong and how can i fix it?



  • when i removed cordova-plugin-inappbrowser after the installation openURL function doesn’t work

    cordova plugin remove cordova-plugin-inappbrowser
    

Log in to reply