I am testing the import function of my CN1 app in some special cases.
Normal use cases work, like using the Document folder to load/save files with custom extension.
But there are also other cases:
the plist inject build hint encompasses registering the custom extension in the system.
I used a iOS XCode template about a Document app to create the relevant string in the build hint.
It seems to work, indeed the start() method is called with AppArg
-when a file is dragged onto the simulator from the OSX filesystem
-when the user shares a file copying it to my app
I see that Documents/Inbox is used But I get an exception when reading the input stream File not found: /Users/mac/Library/Developer/CoreSimulator/Devices/2491FACD-C843-4238-AA5F-648480FFF637/data/Containers/Data/Application/56C50CA4-E53F-4284-A566-41718AC64CF6/Documents/Inbox/myfile.ext
and in some cases also (very strange)
Connection error
Https://cloud.codenameone.com/register/device java.io.IOException - An SSL error has occurred and a secure connection to the server cannot be made. 2021-06-09 17:07:48.353087+0200 MyApp[4053:46162] java.io.IOException at com_codename1_impl_ios_IOSImplementation_NetworkConnection.ensureConnection:7159 at com_codename1_impl_ios_IOSImplementation.getResponseCode:7496 at com_codename1_io_ConnectionRequest.performOperationComplete:904 at com_codename1_io_NetworkManager_NetworkThread.run:340 at com_codename1_impl_CodenameOneThread.run:176
The path is local, so it could depend on it, but I think also the sharing operation uses the local path when the iOS simulator is used.
The sharing (copy to MyApp) option seemed to be working until today.
But when the build hint was appended with some parts to address all the functionalities about the custom extension ,
further testing on many simulated devices seems to show bad functioning:
the Files app is stuck or crashes when attempting to send a file to my app.
This could be related to the above mentioned errors, but I could not catch them on the debug console when the Files app freezes.
Do you know something about this?
Regards