Ionic sdk 29 permissions issue - happen in many plugins

Hi All,

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

I think adding
<preference name="android-targetSdkVersion" value="29" /> to your config.xml should work?

Hi,

That’s exactly the problem. I i will do it, i will get errors when messing with plugins that uses files.
Therefore, i need to target 28

Mhh i also added this Line to fit to the Store. When do you receive error? While building the App?

hi,

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. :slightly_smiling_face:

For the File Plugin, it seems to be known: https://github.com/apache/cordova-plugin-file/issues/408

@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.

1 Like

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