Skip to content

[Bug]: Sharing of PDF in Outlook or Email had long delays in Android and IOS #3539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
8 tasks done
khteryn opened this issue Apr 1, 2025 · 0 comments
Open
8 tasks done
Labels
bug Something isn't working triage

Comments

@khteryn
Copy link

khteryn commented Apr 1, 2025

Platform

Android 13 and above

Plugin

share_plus

Version

10.1.4 since 10.0.2

Flutter SDK

3.27.0

Steps to reproduce

  1. Share a pdf using share plus package.

Code Sample

Container(
                width: 39,
                padding: const EdgeInsets.symmetric(vertical: 4.2),
                margin: const EdgeInsets.only(right: 18),
                child: TextButton(
                  onPressed: () {
                    final size = MediaQuery.of(context).size;
                    getApplicationDocumentsDirectory().then(
                      (basePath) async {
                        await Share.shareXFiles(
                          [XFile('${basePath.path}/${picture.path!}')],
                          sharePositionOrigin:
                              Rect.fromLTWH(0, 0, size.width, size.height / 2),
                        );
                      },
                    );
                  },
                  style: ButtonStyle(
                    overlayColor: MaterialStateColor.resolveWith(
                      (states) => Colors.transparent,
                    ),
                  ),
                  child: Image.asset(
                    'assets/images/ic_share.png',
                    color: Colors.white,
                  ),
                ),
              ),

Logs

No errors

Flutter Doctor

[✓] Flutter (Channel stable, 3.27.0, on macOS 15.3.1 24D70 darwin-x64, locale en-PH)
    • Flutter version 3.27.0 on channel stable at /Users/katherineabracosa/fvm/versions/3.27.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8495dee1fd (4 months ago), 2024-12-10 14:23:39 -0800
    • Engine revision 83bacfc525
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at /Users/katherineabracosa/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • ANDROID_HOME = /Users/katherineabracosa/Library/Android/sdk
    • Java binary at: /Users/katherineabracosa/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/katherineabracosa/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.98.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.108.0

[✓] Connected device (3 available)
    • SM X716B (mobile) • R52X603APSH • android-arm64  • Android 14 (API 34)
    • macOS (desktop)   • macos       • darwin-x64     • macOS 15.3.1 24D70 darwin-x64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 135.0.7049.41
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Katherine Abracosa’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this
      Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@khteryn khteryn added bug Something isn't working triage labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant