Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
InMemoryBlobCache used by default using latest release package iOS Xamarin #238
I'm using Xamarin Studio and the latest version of akavache built for Unified iOS (V 4.1.0) However stored data does not persist app restarts.
100% repro sample project : https://dl.dropboxusercontent.com/u/21635985/InMemoryBlobCache.zip (You will need to restore packages)
It's a very simple project. The iOS project is built using the downloaded Xamarin.iOS10 binaries. (Note: No SQL DLL's appear in the iOS folder download from https://github.com/akavache/Akavache/releases I'm not sure if that's relevant or not!)
I noticed no values are being retrieved after device reset. You can reproduce this easily using the attached project. After examining further, I noticed that everything seems to use the InMemoryBlobCache, I'm sure this is incorrect.
I guess the two issues are related, but I'm creating this issue here in the hopes that one of the developers can help me resolve this issue.
Again, I must stress that I'm using the official Akavache release here. and this is the second issue I've ran into out of the box. Maybe I'm doing something insanely stupid....
I guess no persistence would be understandable if I was doing something unique or different, but since I'm using the stock installation in the simplest of projects imaginable, I feel like something else is going wrong. (Or, I'm doing something incredibly silly, though I can't imagine that's the case, since I'm not trying to do anything other than use Akavache for it's most basic functionality.)
The fact that I've added a incredibly basic 100% repro project to the issue, should help the devs locate the problem fairly easily. So, let's hope they're listening.
@flagbug That may or may not be the case, the iOS project does not have a direct reference to Akavache.Sqlite3, since there is no provided binary in Xamarin.iOS10
Note : This is the downloaded package from the release page : https://github.com/akavache/Akavache/releases
Regardless if there is a direct or indirect reference, the problem of data loss on app restart still exists with the current released binaries as is evident in the attached project. (Post 1)
I've provided a 100% repro project that anyone can download and use. Download, restore and build, result == broken.
Out of the box, latest release of akavach simply does. not. work. on. iOS. How could you have released this stating that it works?
Akavache is working well, apart from this one bug. Data doesn't persist between application runs.
I'm going to have another bash at getting the persistence working this weekend, but I don't know what else I can do differently.
I cloned Akavache locally, a month or so ago, to see if I could get the other providers to work with Unified iOS, in v4.1.0. I'm pretty sure it's an issue with SQLite, as flagbug was suggesting. However, I'm thinking, from recollection, that it's more to do with an issue with SQLitePCL.raw_basic. Haven't had time to tinker more yet, but I did download your zip earlier (maybe can tinker over the weekend). I'm pretty sure this issue would be fairly straight forward to fix, if I was more familiar with those bits, which I'm not really, yet. @paulcbetts If it's not too much trouble to ask, is there anything blatantly obvious we're missing here?