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?