Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[shareFile] Failed to share file on Android (WhatsApp) #38

Open
Tchano-Py opened this issue Oct 30, 2023 · 2 comments
Open

[shareFile] Failed to share file on Android (WhatsApp) #38

Tchano-Py opened this issue Oct 30, 2023 · 2 comments

Comments

@Tchano-Py
Copy link

When I share the file via email, the file is sent along with the title and text. But when I share it on WhatsApp the file is not sent and also the title is not sent.

my code:
`var status = await Permission.storage.request();
if (status.isGranted) {
final baseStorge = await getExternalStorageDirectory();

    final file = '${baseStorge!.path}/$fileName'; 

    final response = await Dio().download(url, file);
    if (response.statusCode == 200) {
      final share = await FlutterShare.shareFile(
        title: 'Proposta: $taskTitulo',
        text: 'Cliente: $taskClienteName',
        filePath: file,
      );

      if (share == true) {
        NotificationService().showNotification(
          title: 'Proposta Guardado',
          body: 'A sua proposta "$taskTitulo", foi guardado com sucesso.',
        );
      }
    } else {
      myMessage("ERROR!⛔.");
    }`
@MartinDapper
Copy link

i have the same issue :c only send the title text in whatsapp

@ozhankucuk
Copy link

I have same problem. When I share with email, the file will attached , but whatsapp is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants