capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

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

Open kirillleogky opened this issue 1 year ago • 0 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;
  }

kirillleogky avatar May 16 '24 16:05 kirillleogky