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

Android min target sdk version 29 #115

Closed
secretmoo35 opened this issue Sep 10, 2020 · 10 comments
Closed

Android min target sdk version 29 #115

secretmoo35 opened this issue Sep 10, 2020 · 10 comments

Comments

@secretmoo35
Copy link

New apps must target at least Android 10 (API level 29) (Ref. https://developer.android.com/distribute/play-policies)

config.xml
<preference name="android-targetSdkVersion" value="29" />

83759364-cff53b00-a649-11ea-977b-ef7911811f6c

Test on Huawei Nova 5(Android 10)

This solving the problem from now on Not available anymore (Ref. #110 )

How to fix?

@pzjyyzs
Copy link

pzjyyzs commented Sep 16, 2020

I have the same question. Have you solved this problem ?

@KazakovVS
Copy link

Having the same issue. Any chances to get it resolved?

@TDola
Copy link

TDola commented Sep 23, 2020

Got this too, permission issue maybe?

@TDola
Copy link

TDola commented Sep 23, 2020

Not certain what this fork changed, but it seems to be working?
https://github.com/yjseo29/cordova-plugin-mediaPicker
You know how cordova and plugins are...
I can't say definitively that this solved the problem. My steps were...
Uninstall the old one...
fail, because cordova needs the variable defined for the uninstall, but doesn't give the option to do that...
Manually remove from plugins folder, manually remove from package.json, manually remove from fetch.json. Remove android platform and reinstall 8.1.0 platform
Install new version of plugin from fork.
Target API 30
Build, and it worked.

@imgoddqp
Copy link

imgoddqp commented Oct 1, 2020

I resolve this by add
android:requestLegacyExternalStorage="true"
in the manifest file
image

在manifest application中加上
android:requestLegacyExternalStorage="true"
Android Q 默认开启沙箱模式 导致出现文件读写失败

@secretmoo35
Copy link
Author

I resolve this by add
android:requestLegacyExternalStorage="true"
in the manifest file
image

在manifest application中加上
android:requestLegacyExternalStorage="true"
Android Q 默认开启沙箱模式 导致出现文件读写失败

It worked on Ionic 3 & Ionic 5. Thanks for recommended.

👍 👍

@TDola
Copy link

TDola commented Oct 1, 2020

That's only a temporary solution

Caution: After you update your app to target Android 11 (API level 30), the system ignores the requestLegacyExternalStorage attribute when your app is running on Android 11 devices, so your app must be ready to support scoped storage and to migrate app data for users on those devices.

https://developer.android.com/training/data-storage/use-cases

@Mr-Anonymous
Copy link

Why is this issue closed? I think the plugin should address this issue since the fix above is only a temporary work-around.

@rlindgren
Copy link

@TDola How is this working out for you with Android 11? Have you moved to a different picker again?

@TDola
Copy link

TDola commented Nov 29, 2021

@rlindgren Not yet, so far we are targeting API 30 and it's still working. I have kind of scheduled it in to be replaced for every upcoming release just in case the thing finally breaks.

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

7 participants