Hi,I need a way for the user to select a pdf file from their mobile device, the binaryData will be sent to the server.
We had an uploadwidget in our mobile apps, but with the new requirements of google the android permissions media_images_read and media_video_read can't be in the androidmanifest. When these permissions aren't there the uploadwidget doesn't work anymore.
For that reason we swithed to plugins, Taking a picture or selecting a picture from the gallery already works. Selecting a PDF works on IOS but not on Android.
I use the GetFile-action from the filechooserPlugin. When the user selects a file, a uri is returned. However on ios it starts with file:// while on android it starts with content://
Afterwards I use the GetFileDataFromUri action from the Fileplugin, but nothing happens on android
I tried to create a cordova-plugin that uses contentresolver to get the BinaryData from the content:-//-url, the Plugin itself seems to work(when testing is as a stand-alone cordova-project), but not when I add to my project, I always get it's not loaded.The App is built with MABS11, version of the fileplugin is 3.0.9 Do I need a custom plugin, or are there other solutions? Am I overcomplicating this? Help much Appreciated
Geert
Hello @Geert Uyttendaele,
After Google's new permission restrictions, the Android (MABS 11) app requires MANAGE_DOCUMENTS permission for the Intent-Based Approach. Can you add this one and try it?Maybe it will work.
Thank you.