-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Platform
Android 16
Plugin
share_plus
Version
^12.0.1
Flutter SDK
Flutter 3.35.7 • channel stable • https://github.com/flutter/flutter.git Framework • revision adc9010625 (4 months ago) • 2025-10-21 14:16:03 -0400 Engine • hash 6b24e1b529bc46df7ff397667502719a2a8b6b72 (revision 035316565a) (3 months ago) • 2025-10-21 14:28:01.000Z Tools • Dart 3.9.2 • DevTools 2.48.0
Steps to reproduce
- Use following code :
`
static const String _androidStoreUrl = 'play.google.com/store/apps/details?id=com.example.toto'; //no bug is using www.google.com or some other simple urls.
static Future _shareLink(BuildContext context, String storeUrl) async {
if (_isSharing) {
print('
return;
}
_isSharing = true;
try {
final message = '''🙏 Découvre Iste, mon assistant something
Télécharge gratuitement : \n\n''';
final fullMessage = message + storeUrl; // doublon de message lorsque text et url envoyés ensemble
await Share.share(fullMessage);
} finally {
_isSharing = false;
}
}
`
Specifically on Android, sharing withing facebook messenger app, this causes duplicates (message 3 times)
On iOS it is working fine
On Android with gmail, this is working fine too.
Code Sample
Logs
No exception into the logsFlutter Doctor
[√] Flutter (Channel stable, 3.35.7, on Microsoft Windows [version 10.0.26200.7840], locale fr-FR) [620ms]
• Flutter version 3.35.7 on channel stable at C:\tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision adc9010625 (4 months ago), 2025-10-21 14:16:03 -0400
• Engine revision 035316565a
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[√] Windows Version (11 Professionnel 64-bit, 25H2, 2009) [1 852ms]
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3,0s]
• Android SDK at C:\Users\tutu\AppData\Local\Android\Sdk
• Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• ANDROID_HOME = C:\Users\tutu\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Java\jdk-17\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version Java(TM) SE Runtime Environment (build 17.0.13+10-LTS-268)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web [332ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.36) [330ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.34902.97
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2024.3.2) [10ms]
• Android Studio at C:\Program Files\Android\Android Studio
• 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 21.0.6+-13368085-b895.109)
[√] VS Code (version unknown) [8ms]
• VS Code at C:\Users\tutu\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
X Unable to determine VS Code version.
[√] Connected device (4 available) [349ms]
• RMX2075 (mobile) • 91f50e07 • android-arm64 • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.26200.7840]
• Chrome (web) • chrome • web-javascript • Google Chrome 144.0.7559.97
• Edge (web) • edge • web-javascript • Microsoft Edge 145.0.3800.58
[√] Network resources [457ms]
• All expected network resources are available.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