Skip to content Skip to sidebar Skip to footer

Ionic 2 Can't Resolve All Parameters For Inappbrowser

I don't understand why I get the following error when I use the native InAppBrowser plugin : Can't resolve all parameters for InAppBrowser import { Component } from '@angular/core'

Solution 1:

You don't need to add InAppBrowser to the providers array and you also don't need to inject it in the constructor.

Simply import it in the beginning of the page (as you did), and then use it anywhere in the code like that:

openPage() {
  newInAppBrowser('https://google.com', '_system');
}

Post a Comment for "Ionic 2 Can't Resolve All Parameters For Inappbrowser"