Hi developers,
I am developing an app that allows the user to collect data in the field and save them into an sqlite database.
The user will create one db per project and survey and ideally he/she will need to access and share that database.
For that reason I added to the Info.plist teh keys:
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
and am using the path_provider to handle the documents folder with getApplicationDocumentsDirectory.
I come from Android and have very limited IOS experience, so my question might seem obvious, but here is what happens.
When I create the database, it is created properly inside:
/var/mobile/Containers/Data/Application/very_long_key_of_the_app_i_assume/Documents/appname/my_project.sqlite
and that is awesome and ok.
After a while (or if a close the app from the apps list), once I rerun the app, the database path magically got converted into:
/private/var/mobile/Containers/Data/Application/very_long_key_of_the_app_i_assume/Documents/tmp/appname-Inbox/my_project.sqlite
I am really puzzeled about the new path starting with private and ending in the tmp... Inbox folder.
Can anyone point me in the right documentation to understand what is going on?
Thank you,
Cheers,
Andrea