ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
509 stars 577 forks source link

@capacitor/app-launcher canOpenUrl crashed app (android) #2170

Closed xaru123 closed 1 week ago

xaru123 commented 1 month ago

Bug Report

Plugin(s)

@capacitor/app-launcher

Capacitor Version

Capacitor Doctor

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

only on android

Current Behavior

Try to open 'tel:+79001234567' or another phone crashed app. App is closed and nothing work. "tel://" is not working too. canOpenUrl return false. Everytime. If delete a check canOpenUrl and call only openUrl method , everything is fine If delete only "if (value)" app crashed. The problem is in canOpenUrl method.

Expected Behavior

Open phone number page, where you can call a number.

Code Reproduction

const { value } = await AppLauncher.canOpenUrl({ url: `${telephone}`  });

if (value) {
  await AppLauncher.openUrl({ url: `${telephone}` });
}
Ionitron commented 3 weeks ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks! Ionitron 💙

Ionitron commented 1 week ago

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Ionitron 💙