ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
534 stars 599 forks source link

Cannot select a printer from the Share dialogue box #2056

Open michi949 opened 8 months ago

michi949 commented 8 months ago

Bug Report

Plugin(s)

@capacitor/share: 5.0.6

Capacitor Version

Latest Dependencies:   

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

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/cli: 5.6.0
  @capacitor/core: 5.6.0
  @capacitor/ios: 5.6.0

Platform(s)

iOS

Current Behavior

I am trying to share and then print a downloaded PDF (about 15 pages). The Share dialogue box opens and when I select Print, the PDF appears in the Print dialogue box. When I then try to select a printer on my network, the app tries to collect any informations of the printer and then it seems to fail further no printer is selected, i.e. it is never possible to select one. I have tried with different networks and printers and all users of the application have this problem.

Expected Behavior

A printer should be selected and the PDF should be printable.

Code Reproduction

Permission: NSPhotoLibraryUsageDescription

        const result = await Filesystem.writeFile({
                path,
                data: "data:" + type + ";base64," + base64,
                directory: Directory.Cache,
                recursive: true,
         });

        await Share.share({
            title: title,
            url: result.uri,
        }).catch(console.error);
  1. Click on a Share Button
  2. Then print
  3. Try to select a printer

Other Technical Details

Tested on iPhone XS 17.3.1 Application is provided by internal Ivanti Mobile Iron app store, all air printer settings are allowed.

ionitron-bot[bot] commented 7 months ago

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.