ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
529 stars 597 forks source link

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

Closed xaru123 closed 2 months ago

xaru123 commented 3 months 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 2 months 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 2 months 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 💙

ionitron-bot[bot] commented 1 month ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.