import { WebPlugin } from '@capacitor/core'; import type { AppLauncherPlugin, CanOpenURLOptions, CanOpenURLResult, OpenURLOptions, OpenURLResult, } from './definitions'; export class AppLauncherWeb extends WebPlugin implements AppLauncherPlugin { async canOpenUrl(_options: CanOpenURLOptions): Promise { return { value: true }; } async openUrl(options: OpenURLOptions): Promise { window.open(options.url, '_blank'); return { completed: true }; } }