ionic-team / capacitor-plugins

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

@capacitor/app-launcher canOpenUrl always returns false (iOS 17.5.1, Capacitor 6, Ionic 7) #2143

Closed AndrewBargan closed 2 months ago

AndrewBargan commented 4 months ago

Bug Report

Plugin(s)

@capacitor/app-launcher

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

iOS 17.5.1, Capacitor 6, Ionic 7, XCode 15.4

Current Behavior

I'm getting false for all installed apps on my iPhone

Expected Behavior

I should receive true for the commands specified in the next section

Code Reproduction

I've got bunch of messengers installed on my iPhone and when I check if they are installed I'm getting false for all of them:

    console.log(await AppLauncher.canOpenUrl({url: 'org.telegram.messenger'}));
    console.log(await AppLauncher.canOpenUrl({url: 'com.whatsapp'}));
    console.log(await AppLauncher.canOpenUrl({url: 'com.facebook.orca'}));
    console.log(await AppLauncher.canOpenUrl({url: 'com.viber.voip'}));
    console.log(await AppLauncher.canOpenUrl({url: 'com.skype.raider'}));
Ionitron commented 3 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 💙

AndrewBargan commented 3 months ago

@Ionitron My fault :) Found my bug when tried to reproduce the issue. Everything works as expected. Close the issue! Thanks!

ionitron-bot[bot] commented 2 months 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.