plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

Share Dialog does not open for flutter website in ipad chrome and ios (chrome and safari)

Open Ultranmus opened this issue 2 years ago • 0 comments

What is your question?

Issue Description: The share dialog opens perfectly on Android, Windows, Mac, and iPad Safari. However, when attempting to trigger the share dialog on iPad Chrome, iPhone Safari, and Chrome on iPhone, it fails to open for flutter website.

Reproduction Steps:

  • On a button click, I create a Firebase dynamic link using a REST API.
  • After successfully creating the dynamic link, I attempt to share it using the share_plus package.
  • The share dialog opens correctly on Android, Windows, Mac, and iPad Safari, but fails to open on iPad Chrome, iPhone Safari, and Chrome on iPhone.
// Async function triggered on button click
void shareDynamicLink() async {
  // Create Firebase dynamic link using REST API
  String dynamicLink = await createDynamicLink();

  // Share the created dynamic link using share_plus package
  await Share.share(dynamicLink);
}

Observations:

  • The dynamic link is created correctly on all devices and browsers.
  • The share dialog opens as expected on Android, Windows, Mac, and iPad Safari.
  • The issue occurs only on iPad Chrome, iPhone Safari, and Chrome on iPhone.

Environment:

  • Flutter: Channel stable, 3.16.4,
  • Dart: 3.2.3
  • share_plus Package: 7.2.1

Checklist before submitting a question

  • [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 am 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

Ultranmus avatar Dec 22 '23 06:12 Ultranmus