nativescript-community / ui-document-picker

A NativeScript plugin that allows you to select files from the device.
https://nativescript-community.github.io/ui-document-picker/
Apache License 2.0
10 stars 8 forks source link

files greyed out on iOS #22

Open ray007 opened 1 year ago

ray007 commented 1 year ago

On iOS I can navigate to the folder containing my files (json with custom extension), but they are all greyed out and not selectable.

sudiptosen commented 1 year ago

I have the same issue. It's really that the extensions config is not working. If you take it out, it works fine. Don't know if there is any work around. Will try to ask on Discord

CatchABus commented 1 year ago

@ray007 @sudiptosen Perhaps, you have to add configuration for custom extensions in your info.plist. See: https://developer.apple.com/documentation/uniformtypeidentifiers/defining_file_and_data_types_for_your_app

@farfromrefug It seems UIDocumentPickerViewController.initWithDocumentTypesInMode gets deprecated in iOS 15 which might also be a cause: https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller/1618678-init Do you think we can update this without breaking things?

farfromrefug commented 1 year ago

@ray007 @sudiptosen can you show how you call it on iOS. extensions does not work the same on both platforms (sadly). It is mimtype on android and special format on iOS https://developer.apple.com/documentation/uniformtypeidentifiers