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

iOS does not shows the apps like gmail #3

Open
aravindhkumar23 opened this issue Feb 16, 2019 · 6 comments
Open

iOS does not shows the apps like gmail #3

aravindhkumar23 opened this issue Feb 16, 2019 · 6 comments

Comments

@aravindhkumar23
Copy link

aravindhkumar23 commented Feb 16, 2019

Hi,
The plugin looks awesome and it saves me time.

I am facing a problem or maybe I am missing something with sharing a file with Gmail, It works in android but iOS does not show the list of apps in share extension.

is there something I need to do apart from installing the dependency in pubspec file?

The more option shows an empty list

file

@giandifra
Copy link
Owner

giandifra commented Feb 17, 2019

can you try example app of this repository? this result is strange.

@giovapanasiti
Copy link

I'm stuck in the same issue

@giovapanasiti
Copy link

@aravindhkumar23 can we see your code?

I ALMOST solved my problem.

void _sharePdf(String path) {
    final uri = Uri.file(path);
    SimpleShare.share(
        type: 'PDF',
        uri: path,
        title: "Share my file",
        msg: "My message");
  }

This is how I'm doing it now. The path is resolved and the file can be attached to an email. The only issue now is that the attached file doesn't have PDF extension even if the original file have it :(

@aravindhkumar23
Copy link
Author

@giovapanasiti
I haven't used type as pdf, my file is filename.txt
this is how I'm doing will it accept text as a type?

final uri = Uri.file(path);
    SimpleShare.share(
        subject: "Log file",
        uri: path,
        title: "Titel",
        msg: "message");

@giovapanasiti
Copy link

from what I've seen it has the behaviour you described when it doesn't find the file. Try to keep an eye on the log to see if any error message shows up.

@giandifra
Copy link
Owner

sorry, in this period i haven't iPhone device, i cant try

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