SQLite writes were executed on main thread which could cause ANRs and is causing hiccups in Unity. To solve this OperationQueue is added which writes to SQLite in background thread sequentially to ensure all events are written in the generated order.
Background
SQLite writes were executed on main thread which could cause ANRs and is causing hiccups in Unity. To solve this OperationQueue is added which writes to SQLite in background thread sequentially to ensure all events are written in the generated order.
Implementation
OperationQueue which runs on background thread.
Testing steps
Is this change backwards-compatible?
Yes