Questions tagged [akavache]

Akavache is an asynchronous, persistent (i.e. writes to disk) key-value store created for writing desktop and mobile applications in C#. Think of it like memcached for desktop apps.

Akavache is an asynchronous, persistent (i.e. writes to disk) key-value store created for writing desktop and mobile applications in C#. Think of it like memcached for desktop apps.

85 questions
2
votes
1 answer

LoadImageFromUrl IBitmap to ImageSource

I am using the code below the Akavache to cache images. Return is an IBitmap, how can I convert this IBitmap to an ImageSource? var url = "https://ashdbhjas/image.png"; ImageSource imageSrc = await BlobCache.LocalMachine.LoadImageFromUrl(url); //…
Anpeiron
  • 43
  • 1
  • 6
2
votes
2 answers

Azure MobileServices and Akavache

I'm build a xamarin forms app using Azure Mobile Services for offline sync - versions are: Microsoft.Azure.Mobile.Client 3.1.0 Microsoft.Azure.Mobile.Client.SQLiteStiore 3.1.0 SQLitePCL 3.8.7.2 SQLitePCLRaw.bundle_green 1.1.2 SQLitePCLRaw.core…
markpirvine
  • 1,369
  • 1
  • 19
  • 43
2
votes
1 answer

Cannot get Akavache to work using PCL Xamarin Forms app

I've been struggling with this for 4 hours now and I'm now turning in circles. I'm trying to get Akavache to run for my project. The project is a out-of-the-box Xamarin Forms (Portable) type. Then using Nuget I added Akavache 4.1.2 (which also added…
Peter Donker
  • 148
  • 13
2
votes
1 answer

OutOfMemoryException using Bitmaps in Xamarin.Android

I'm facing an OutOfMemoryException when I try to download images (that can be large images). I'm working with Xamarin.Android and a PCL for cross-platform actions. I want to do an image slideshow. I have a limited number of imageviews superposed on…
Jordan Gueguen
  • 128
  • 2
  • 11
1
vote
1 answer

Is this pattern OK for loading&caching data by Akavache in ViewModel and binding them to UI in Xamarin.Forms?

I am trying to find some 'best practice' sample how to use Xamarin.Forms, ReactiveUI and Akavache in realworld scenario. Lets say there is simple page representing Customer Detail. It should retrieve data from server when activated (navigated to). I…
alesdvorak.cz
  • 121
  • 10
1
vote
2 answers

Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only mode

Xamarin.iOS Xamarin.Forms 3.6 akavache v6.4.1 The type initializer for 'Akavache.BlobCache' threw an exception. Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only…
codetale
  • 87
  • 5
1
vote
2 answers

How to subscribe new value in Akavache?

I'm using Akavache's GetAndFetchLatest method and I have created dependency services to communicate with Akavache's method. I'm calling akavache from service layer successfully when i directly reference. For subscribing MyMod result = null; …
Dhruv
  • 70
  • 8
1
vote
0 answers

Xamarin.Forms - Akavache how to recreate Sqlite3 connection after BlobCache.Shutdown()

I want the user to be able to leave the App and to come back as many times as he wants. Saving its data in the cache each time the app is sent background. When my App on Xamarin.Forms goes "OnSleep()" the following code is…
Jeff
  • 31
  • 4
1
vote
0 answers

The latest version (6.0.20) of Akavache seems to be partly broken when used in Xamarin.iOS?

I was originally trying to fetch and cache an image using BlobCache.LocalMachine.LoadImageFromUrl(someURL), but I found that it just stopped responding after I called this method. (Yes, I've set BlobCache.ApplicationName, I even called…
Raymond U.
  • 11
  • 1
  • 1
1
vote
1 answer

What is new in Akavache v6.0.17-beta that i can tap(I cant find the release note)

What is new in Akavache v6.0.17-beta that i can tap(I cant find the release note) I am have been waiting for any update on this great library.
Chrisgate
  • 38
  • 3
1
vote
1 answer

Could not find Akavache GetObjectAsync method

I've installed akavache Nuget package (tried v5.0 and v6.0.0-alpha and I am using .NET Standard), but don't have access to GetObjectAsync mentioned in many examples through the web. (Even on the official page). I am considering this is rather not…
Agat
  • 4,165
  • 30
  • 58
1
vote
1 answer

What does "linked out by Xamarin" mean?

In the Akavache docs, it says... Add the following class anywhere in your project to make sure Akavache.Sqlite3 will not be linked out by Xamarin What does "linked out by Xamarin" mean?
Ian Warburton
  • 13,336
  • 19
  • 85
  • 164
1
vote
2 answers

Reading Akavache cache from Swift

I'd like to load Akavache data from Swift. I've found myapp.db{-wal,-shm} files under Library/Application Support/MyApp/BlobCache and can read myapp.db, but I'm not sure how to read key-values from the other files. Is there some documentation…
David Siegel
  • 1,456
  • 10
  • 12
1
vote
2 answers

Akavache: saved value not available after iOS app restart

I am using Akavache standard approach on iOS (actually, it's .NET Standard project for Android/iOS), but the issue appears with iOS only. I save some value during the app lifecycle: await BlobCache.Secure.InsertObject("user", user); And on the…
Agat
  • 4,165
  • 30
  • 58
1
vote
1 answer

Possible bug in Akavache in Xamarin.Forms / Xamarin iOS

Implementation of Akavache works on Android debug and release and iOS debug mode. However, it crashes on iOS release mode. The exception thrown, intercepted from Raygun, is The type initializer for 'Akavache.Sqlite3.Internal.SQLiteConnection' threw…
Mr. 笑哥
  • 273
  • 1
  • 5
  • 15