Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Akavache crashes silently (apps just disappear) after data is cleared #248
On Android, go to settings and clear data. Launch apps again(from device directly, NOT from Visual Studio). Apps come up momentarily and just shut down silently. I suspect that Akavache would need to check if backing SQLite is there. If not, create and register blobs.db, userblobs.db and secret.db (I think). Apps works fine after deployment and continue to work fine until the data is cleared in the settings.
The issue only happens after the data and cache is cleared in the App Settings. When one starts launching the app from VS IDE (or XS), the app is deployed to the device. At this time, the bundled db is also deployed. So no problem would happen here. After the cache is cleared, the backing SQLite db is gone. I suspect that at this time, any code that assumes the db is present might encounter some problem.
So I think Akavache, as a library can handle this situation. If the apps using Akavache are to handle, then the paths to the backing dbs would just need to be exposed.
Anyway, the following is the logcat output that I captured:
monodroid-assembly Could not load assembly 'MyApp.Droid' during startup registration
I wouldn't bother so much on this logcat output because they look kind of generic. The issue can be fairly easy to reproduce by simply clearing the cache and launch the app again.
Lastly, I don't think this is limited to Android. But I will confirm on other platforms.
@flagbug Yes, you're totally right. I had "fast deployment" enabled. After seeing your response, I disabled "fast deployment" and repeat the same steps again. The problem NO longer happens. You're right that the problem is not with Akavache. I am closing this ticket. Thanks.