plus_plugins
plus_plugins copied to clipboard
[Bug]: cannot change subject line in 3rd party email apps
Platform
IOS
Plugin
share_plus
Version
all
Flutter SDK
3.10.7
Steps to reproduce
implement share_plus anywhere in your code. choose gmail or outlook from the share sheet.
Code Sample
Share.share(message, subject: subject, sharePositionOrigin: position);
Logs
n/a
Flutter Doctor
[!] Flutter (Channel unknown, 3.10.7, on macOS 14.1 23B74 darwin-x64, locale en-US)
! Flutter version 3.10.7 on channel unknown at /Users/username/fvm/versions/3.10.7
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/username/fvm/versions/3.10.7. Consider adding /Users/clark/fvm/versions/3.10.7/bin to the front of your path.
! Unknown upstream repository.
Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
• Framework revision e285328a69 (3 months ago), 2023-08-17 17:55:17 -0700
• Engine revision 077a732ef4
• Dart version 3.0.7
• DevTools version 2.23.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /Users/username/Library/Android/sdk
• Platform android-33, build-tools 33.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A507
• CocoaPods version 1.14.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• Android Studio at /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.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.84.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.58.0
[✓] Connected device (3 available)
• ***** iPhone (Work) (mobile) • #################### • ios • iOS 17.1 21B74
• macOS (desktop) • macos • darwin-x64 • macOS 14.1 23B74 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.105
! Error: Browsing on the local area network for Clark’s 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)
[✓] Network resources
• All expected network resources are available.
Checklist before submitting a bug
- [X] I searched issues in this repository and couldn't find such bug/problem
- [X] I Google'd a solution and I couldn't find it
- [X] I searched on StackOverflow for a solution and I couldn't find it
- [X] I read the README.md file of the plugin
- [X] I'm using the latest version of the plugin
- [X] All dependencies are up to date with
flutter pub upgrade
- [X] I did a
flutter clean
- [X] I tried running the example project
doesn't matter if you hard code it either. using gmail or outlook the subject line is replaced with the first line of the message.
Yea I ran in to the same problem :-(
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
This is an issue with the email apps, not on the share plugin.
You can research online (e.g. StackOverflow) about issues with Gmail or Outlook and the share UIActivityViewController.
We implement both the solution that uses UIActivityItemSource
and the one that uses setValue(subject, forKey: "Subject")
, if the apps aren't implementing the protocol correctly on their side, there is nothing we can do about it.