Skip to content

[share] Sharing image to WhatsApp takes a long time in iOS #70488

@leonardocustodio

Description

@leonardocustodio

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):

[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.20257.1], locale pt-BR)
    • Flutter version 1.22.4 at C:\Users\leona\Documents\flutter
    • Framework revision 1aafb3a8b9 (3 hours ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)found in release: 1.22Found to occur in 1.22found in release: 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: shareThe Share pluginpackageflutter/packages repository. See also p: labels.perf: speedPerformance issues related to (mostly rendering) speedplatform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions