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

BUG result.type == done even if user does NOT download the file #189

Open
mariapapag opened this issue Apr 6, 2022 · 0 comments
Open

BUG result.type == done even if user does NOT download the file #189

mariapapag opened this issue Apr 6, 2022 · 0 comments

Comments

@mariapapag
Copy link

The problem
User clicks download button which runs the following code

      final OpenResult result = await OpenFile.open(tmpPath!);

      if (result.type == ResultType.done) {
        successNotification?.call();
      }

The ios bottom sheet comes up as expected

Screen Shot 2022-04-06 at 10 44 27 AM

When user dismisses the ios bottom sheet by clicking the close(X) button (does NOT download the file)

Screen Shot 2022-04-06 at 10 44 27 AM

The condition result.type == ResultType.done is true and success notification fires. User has not successfully downloaded the file. Why is the result done if user does or doesn't actually download the file?

@mariapapag mariapapag changed the title BUG result.type == done before user actually downloads the file BUG result.type == done before even if user does NOT actually download the file Apr 6, 2022
@mariapapag mariapapag changed the title BUG result.type == done before even if user does NOT actually download the file BUG result.type == done before even if user does NOT download the file Apr 6, 2022
@mariapapag mariapapag changed the title BUG result.type == done before even if user does NOT download the file BUG result.type == done even if user does NOT download the file Apr 6, 2022
@crazecoder crazecoder mentioned this issue Aug 30, 2024
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

1 participant