I’m using the inyected InAppBrowser plugin service in my Ionic 5 app as
inAppBrowser.create('http://some.url/example', '_system'). It does nothing when running in my android device (Google Pixel XL). I already debugged it and the code executes, but it doesn’t open any browser. What could it be?
hey derekbaker90, did you actually find a solution to this ??
i can give you an example of code, then maybe you can use it in your application (refactoring my code where needed)
constructor(
private iab: InAppBrowser,
) {
}
onLinkClicked() {
const browser = this.iab.create('https://www.someHttpsUrl.com', '_blank', { location: 'no' });
}
and the html:
<div (click)="onLinkClicked()">
<p>Click here to open the InAppBrowser </p>
</div>