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

IOS picker delegate issue #10

Closed alexist closed 2 months ago

alexist commented 3 years ago

This is the same issue as https://github.com/nativescript-community/ui-document-picker/issues/4, first workaround doesn't seems to fix the issue

Sometimes, on ios, selected file is not returned to application. I put some console.log in all DocumentPickerDelegate delegate function, and nothing is logged when this issue happen (documentPickerDidPickDocumentAtURL, documentPickerDidPickDocumentsAtURLs, ...)

Moving variable let delegate; outside openFilePicker function seems to fix the issue, but i'm not 100% sure as error happen randomly image

farfromrefug commented 3 years ago

@alexist thanks !