@capacitor/app-launcher always says that i installed the app
kirillleogky opened this issue Β· comments
Kirill Leogky commented
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;
}