I am using FileChooser ionic plugin for Android and FilePicker plugin for IOS. If I use the same code to build android and IOS app, it's giving me the error that FilePicker plugin cant be added to Android. To build app on different platforms currently, I am maintaining two different branches for iOS build and android build.
I want to maintain my code on only one branch. How can I do that?
Solutions which didn't work:
- Searched for the plugin which can work on both iOS and Android but it's not available
- Searched if we can add plugins under the platform in
config.xml
- I found no way to detect the platform and add the plugins accordingly