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]Export csv error on android #137

Open
sommye-ctr opened this issue Jan 5, 2025 · 0 comments · May be fixed by #138
Open

[Bug]Export csv error on android #137

sommye-ctr opened this issue Jan 5, 2025 · 0 comments · May be fixed by #138
Assignees
Labels
medium This is a medium issue worth 30 points

Comments

@sommye-ctr
Copy link
Collaborator

Describe the bug
When exporting csv file, error is coming regarding the permissions allowed by user.
`E/flutter ( 6444): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PathAccessException: Cannot open file, path = '/storage/emulated/0/taskly/tasks.csv' (OS Error: Operation not permitted, errno = 1)

E/flutter ( 6444): #0 _checkForErrorResponse (dart:io/common.dart:55:9)

E/flutter ( 6444): #1 _File.open. (dart:io/file_impl.dart:381:7)

E/flutter ( 6444):

E/flutter ( 6444): #2 _File.writeAsBytes. (dart:io/file_impl.dart:634:34)

E/flutter ( 6444):

E/flutter ( 6444): #3 _HomeScreenState.exportToCSV (package:taskly/screens/home_screen.dart:194:3)

E/flutter ( 6444):

E/flutter ( 6444): `

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Home Screen'
  2. Click on '...' and then 'export to csv file'
  3. See error

Expected behavior
The app should first ask runtime storage permission from the user and then move further if permission is granted.

Smartphone (please complete the following information):

  • Device: Google Pixel 8
  • OS: Android API 35

Additional context
In IOS, the app by default has access to its own folder and therefore no such error occurs in IOS.

@sommye-ctr sommye-ctr linked a pull request Jan 5, 2025 that will close this issue
1 task
@Akshit517 Akshit517 added the easy This is an easy issue worth 15 points label Jan 14, 2025
@Akshit517 Akshit517 added medium This is a medium issue worth 30 points and removed easy This is an easy issue worth 15 points labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium This is a medium issue worth 30 points
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants