Skip to content

Cordova Plugin File doesn't work on Android 13 #424

Answered by breautek
leonelgregioauler asked this question in Q&A
Discussion options

You must be logged in to vote

Android's external file system is now quite limiting and doesn't allow direct file access via file APIs for all files anymore. It does allow for media files such as images, videos, audio. For other file types, the native MediaStore API needs to be used, which the file plugin does not use (and it's not really a file API so it's going to be hard to facade it to make it look like a file API).

Remember, this works fine on others versions, like Android 11 or below. Android 12 I haven't tested yet, but it seems to work !

This wouldn't have worked since Scoped Storage, which was introduced in API 29, but existing apps could opt out and revert back to legacy filesystem. Starting API 30, the sco…

Replies: 7 comments 23 replies

Comment options

You must be logged in to vote
5 replies
@JMrJImmy
Comment options

@breautek
Comment options

@JMrJImmy
Comment options

@JMrJImmy
Comment options

@mvandak
Comment options

Answer selected by leonelgregioauler
Comment options

You must be logged in to vote
12 replies
@leonelgregioauler
Comment options

@pixellet14
Comment options

@Geshaa
Comment options

@leonelgregioauler
Comment options

@Geshaa
Comment options

Comment options

You must be logged in to vote
3 replies
@breautek
Comment options

@leonelgregioauler
Comment options

@breautek
Comment options

Comment options

You must be logged in to vote
1 reply
@breautek
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@breautek
Comment options

@rbaswawa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants