recently we got a message from play console that we must update “android-targetSdkVersion” to 29. (android 10)
now, the problem is that android made a big permission update, and most of the plugins (I’m using many of them) are not supported in the new permission update. (such as File,ImagePicker,PhotoLibrary…)
from August 2020, new apps will have set their config to SDK=29, and existing apps will have time until November. so I have a little time until November, and then, If we will not have an update for all the plugins, no one will be able to develop with IONIC.
so, ionic team, will we have any solution for that? we need it ASAP
if I set it to android-targetSdkVersion" value=“29” so I will get an error while using the following plugins:
File
ImagePicker
PhotoLibrary
you get this error only on a smartphone that has android 10. in S8 for example, which holds android 8 I think I have no issues, but in S20, which holds android 10 you will get errors, and you will not be able to use the plugins above.
Unless you’re using Ionic enterprise, Ionic team has nothing to do with the community plugins. The plugin creators must update their plugins. Thats one of the problems when using 3rd party add ons, goodluck.
@EinfachHans i know. i’m working for a solution for all those plugins. already forked one of them with PR.
working on the file plugin now. (as you can see in your link , i am the last one with comment.)
i’m trying to say, that Ionic guys needs to handle those situations, because if we will not have any plugins to use, so no one will use Ionic.
These are Community Plugin, Ionic has nothing to do with, so it’s not Ionic’s Job to make them work. As @mikrochipkid said, ionic offers some Premier Plugins in Enterprise. This will be maintained by Ionic and Errors like these will be focused fast. For now the best you can do is create PR’s and if they don’t get merged (maybe because the repo is archived) you can fork the plugin, change what you want and install the Plugin from your github repo directly
try the following:
1)run the following command “ionic cordova plugin remove cordova-plugin-file --force”
force is because “file” plugin is a dependency of photo library plugin
2)run the following command “ionic cordova plugin add git://github.com/apache/cordova-plugin-file.git#master”
we will take from git the branch with the PR
3)run the following command “ionic cordova platform remove android”
run the following command “ionic cordova platform add android”
I’m using your solution now, however it doesn’t work. Can i know do you do anything else for example: android:requestLegacyExternalStorage=“true” according this discussion https://github.com/apache/cordova-plugin-file/issues/408?