-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[share] Sharing image to WhatsApp takes a long time in iOS #70488
Copy link
Copy link
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)found in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.24Found to occur in 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: shareThe Share pluginThe Share pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.perf: speedPerformance issues related to (mostly rendering) speedPerformance issues related to (mostly rendering) speedplatform-iosiOS applications specificallyiOS applications specifically
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)found in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.24Found to occur in 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: shareThe Share pluginThe Share pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.perf: speedPerformance issues related to (mostly rendering) speedPerformance issues related to (mostly rendering) speedplatform-iosiOS applications specificallyiOS applications specifically
Hi,
I use the Share plugin and I noticed that when sharing images to whatsapp on iOS the UIActivityViewController gets kind of "frozen" for some seconds until whatsapp appear. This process takes a little bit too much time and the users thinks that the app crashed.
For some reason, this doesn't happen to all apps. For example, sharing to Messages, Mail, Facebook is fast.
But some apps like: WhatsApp, Spark and others are slow.
But why am I reporting this? Well, the process is way slower on apps that were made with flutter than on other apps.
I tried both sending the original files (png/jpg/heic) as well as only jpg converted version and still it takes too much time to be acceptable. Also, this only happens on flutter apps. If I go to other apps, even when sharing the same pics it is way faster.
I pretty much tried every plugin on pub.dev and all have the same problem so I maybe it is not plugin related but flutter related.
I'm using the latest stable version and I've been testing this on a iPhone Xs Max (but a lot of iOS users complain about it):
Here is a sample of sharing 15 photos:

Here are the same photos on an app that is not made in flutter, it takes less than half of the time:

Not sure if this is really flutter fault but I couldn't help noticed that all other native apps are way faster.