Hi I'm using the FilePicker plugin to enable user to select a document from iCloud in iOS from shared PCL using Visual Studio 2015.
I setup provisioning profile for iCloud and installed the plugin but when using the code below it shows file picker from iCloud where I have 2 documents created with Pages app but they are greyed out and unable to select them (see image below)? Not sure why I'm unable to select either of them any ideas? Has anybody had success using FilePicker and have suggestion/sample?
Plugin nuget page here: https://www.nuget.org/packages/Xam.Plugin.FilePicker
Or is there a better way to allow a user to pick a document in Xamarin PCL?
My PCL code:
` try
{
FileData fileData = await CrossFilePicker.Current.PickFile();
Byte[] byteArray = fileData.DataArray;
string fileName = fileData.FileName;
}
catch(Exception e)
{
await DispalyUserMessage("Exception Caught", e.Message, "OK");
}`
I also followed this method to install iOS dll's manually: https://github.com/Studyxnet/FilePicker-Plugin-for-Xamarin-and-Windows/issues/3
Image ->(https://www.dropbox.com/s/6wh92ges0be0q56/WP_20161121_17_17_50_Pro.jpg?dl=0)
Many thanks