Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229528

Ionic Docs don't match the template generated by the CLI

$
0
0

You are the man!
The error has gone away, I am playing around with the cordova.InAppBrowser plugin.
I added the plugin with the following line:
ionic plugin add org.apache.cordova.inappbrowser

The standard import doesn't work:
cordova plugin add cordova-plugin-inappbrowser

shows the following error:
Error: 404 Not Found: cordova-plugin-inappbrowser

Now when I run my app with the following code in my home.html:

`export class HomePage {
static get parameters() {
return [[Platform]];
}

constructor(platform) {
this.platform = platform;
}

launch(url) {
this.platform.ready().then(() => {
try{
cordova.InAppBrowser.open(url, "_system", "location=true");
}catch(e){
alert(e.message);
}

});

}
}`

cordova is undefined, do you have any idea why this would happen?


Viewing all articles
Browse latest Browse all 229528

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>