DocPicker Plugin crashes app after selecting a document

Hi all / Scott,

I’m trying to use the DocPicker Plugin with the sample code provided by Scott (located at https://github.com/scottrules44/docPicker-demo)..)

Tapping on the button to show the DocumentPicker works as expected.  However once a document has been selected and downloaded the app crashes once the DocumentPicker disappears.  The callback function is never called.

My iOS version is 11.4.1

I’ve set up the iCloud container and regenerated the provisioning profile as outlined in the plugin docs.

All seems to be set up fine.

See the 9 second video showing the demo and then crashing the app when I select a file to download:

https://www.youtube.com/watch?v=HWM0NCEZAy4

It would be great if you had a chance to take a look and see the cause of the crash.

Or if anybody is using the plugin without crashing the app, what is your sample code?

Thanks and keep up the great work with your plugins Scott.

Norman.

This should be fixed

Hi Scott:

“Doc Picker Plugin” was working well in my app (iOS 9 and 10) and today this error comes out after doing a build (Maybe for the update?):

https://www.phonemas.com/tmp/error-doc-picker.jpg

say: "Run time error  module 'plugin.docPicker.lu) does no exist in archive

no field package.preload [‘plugin.docPicker’] no file …

Regards,

Solca

Greetings from Colombia Scott,

I have been able to capture the log where the error is displayed (to complement the previously expressed):

Device] ERROR: Runtime error [Device] APP SUSPENDED [Device] \*\*\* Terminating app due to uncaught exception 'Corona Runtime Error', reason: 'module 'plugin.docPicker' not found:resource (plugin.docPicker.lu) does not exist in archive [Device] no field package.preload['plugin.docPicker'] [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin/docPicker.lua' [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.lua' [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.lua' [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin/docPicker.so' [Device] no file './plugin/docPicker.so' [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.so' [Device] no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin.so' [Device] no file './\<\M-b\M^@\M-&\>

This has been patched

Scott, Many many thanks.

I have examined the behavior in iOS 9.3.5 & 10.3.3 and it works perfectly !!! (Now i’m trying to get a device with iOS 11x)

Have you considered publishing this plugin in the marketplace commercially? It is an excellent job. It really is very good and easy to use.

Thanks again for the support.

Solca

Thanks Scott.  When importing, does the file get copied to the system.TemporaryDirectory of the application?

This is an example output I get when calling the ev.urls:

file:///private/var/mobile/Containers/Data/Application/873-D309-4ECF-84CD-1CACFA54B60A/tmp/com.docpickertester.testing-Inbox/00000935419.zip

Is the above path the TemporaryDirectory of the application?