Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kirillleogky opened this issue May 16, 2024 · 0 comments
Open

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

kirillleogky opened this issue May 16, 2024 · 0 comments
Labels

Comments

@kirillleogky
Copy link

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;
  }
@ionitron-bot ionitron-bot bot added the triage label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant