Я сейчас портирую свой проект на Ionic 4 и хотел заменить Cordova InAppBrowser браузером Capacitor, но пока без особого успеха ... Это моя страница:
import { Component, OnInit } from '@angular/core';
import {Plugins} from '@capacitor/core';
const { Browser } = Plugins;
@Component({
selector: 'app-srd',
templateUrl: './srd.page.html',
styleUrls: ['./srd.page.scss'],
})
export class SrdPage implements OnInit {
constructor() {
}
async ngOnInit() {
const url = 'http://capacitor.ionicframework.com/';
await Browser.open({'url': url});
}
}
Консоли нетвывод и страница остается пустой.Есть идеи, что пошло не так?