Good day
I have an IOS messaging app. The app stores messages received and sent in a sqlite3 database and the app also generates log files. This can happen in foreground or as background tasks
When passcode is disabled on the IOS device everything works fine.The log files are created and the database entries can be inserted successfully in any mode of operation, even while the screen is off and the app minimised.
When the Iphone's screen is locked with a passcode it seems that the app can not access any files. My log file pointers stay null and I get this error when I try to add to the database: "sqlite_exec() -> disk i/o error."
The data protection capability is disabled. I am using background fetch and voip capabilities to execute background tasks. The code handling the database and log files are written in C and compiled separately.
Thanks