3

I am trying to use Akavache to store data securely in my Xamarin.iOS and Xamarin.Android project. All seems to be OK on iOS, but it fails on Android saying BlobCache.Secure is null.

Before accessing the cache I set it up with:

BlobCache.ApplicationName = "AppAkavache";
BlobCache.EnsureInitialized();

I have tried reference it directly: BlobCache.Secure (Secure null) or by setting it up using my IoC

Mvx.RegisterSingleton<ISecureBlobCache>(BlobCache.Secure);

public CacheStorage(ISecureBlobCache blobCache){
    var test = blobCache; // still null
}

But the end result is the same. The only cache that is available on BlobCache on Android, is InMemoryCache.

Arnstein
  • 976
  • 1
  • 9
  • 19

0 Answers0