ionic-team / capacitor-plugins

Official plugins for Capacitor ⚑️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@capacitor/app-launcher always says that i installed the app

kirillleogky opened this issue Β· comments

Bug Report

Plugin(s)

@capacitor/app-launcher

Capacitor Version

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
πŸ’Š   Capacitor Doctor  πŸ’Š 

Latest Dependencies:

  @capacitor/cli: 6.0.0
  @capacitor/core: 6.0.0
  @capacitor/android: 6.0.0
  @capacitor/ios: 6.0.0

Installed Dependencies:

  @capacitor/cli: 5.4.0
  @capacitor/android: 5.4.0
  @capacitor/ios: 5.4.0
  @capacitor/core: 5.4.0

[success] iOS looking great! πŸ‘Œ
[error] index.html file is missing in
        /Users/kirilllegkij/Documents/cvt/thr/thr-react-app/android/app/src/main/assets/public

Current Behavior

Expected Behavior

Code Reproduction

  const androidAppPath = `app://app.thr-app.com:/${document.location.pathname}`;
  const iosAppPath = `com.there.app:/${document.location.pathname}`;
  let isCanOpenedApp = false;

  if (isIOS) {
    const { value } = await AppLauncher.canOpenUrl({ url: iosAppPath });
    isCanOpenedApp = value;
  }
  if (isAndroid) {
    const { value } = await AppLauncher.canOpenUrl({ url: androidAppPath });
    isCanOpenedApp = value;
  }