-
Notifications
You must be signed in to change notification settings - Fork 3
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
Can't create file in Android 10+ #8
Comments
Thanks for pointing this out. I've looked into the issue and the additional context you provided, and I've updated the AndroidManifest.xml accordingly. The only issue we have is the following: The Google Play store has a policy that limits the usage of MANAGE_EXTERNAL_STORAGE, but we'll deal with Google later if need be. |
Still has some problems for Android. I have ensured I built the debug application correctly but the application didn't request permission when it started. |
So, let me get this straight: it does work now, but it doesn't ask for permission before accessing the device's filesystem, right? |
No, it doesn't work properly. I still get errors when the application tries to write files. And it doesn't request permission either. In settings, it says no permissions are required. |
Uhm, I'll look into it, however it does work on android studio somehow. |
What's your Android version? |
Here's the emulator's about section, as you can see it's running android 13 so it should be part of this issue. Anyway I believe I've found something in capacitor's documentation concerning permissions. |
I've browsed a bit and maybe the only quick fix is changing the way we store files. Since the app doesn't have access to the Documents folder anymore, we can change it to save the data under Data. |
Describe the bug
Pocket can't create files on Android 10.
Screenshots
![图片](https://private-user-images.githubusercontent.com/26884666/311717518-1162ecc6-ffc4-40b9-ba82-4af16f5548ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMzY1MjEsIm5iZiI6MTcxOTEzNjIyMSwicGF0aCI6Ii8yNjg4NDY2Ni8zMTE3MTc1MTgtMTE2MmVjYzYtZmZjNC00MGI5LWJhODItNGFmMTZmNTU0OGFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDA5NTAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2Nzc1ODFkM2JhMTAwYjE3NDg3YTM2NjdjYzc3MTFjNDkyMDNkNTNkZWY2YjRlYWM0Njg3NmMxODJmNjdmY2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yU2Soy0cYxZJLx-79dX7pKS8qV56k2ZYmlLBHM69-uU)
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: