Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

akavache not caching in ios simulator/device

$
0
0

using xamarin forms v.3.1 and akavache v5 + akavache.sqlite3 v5.

in app.xaml.cs I initialized akavache

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

And to cache data i use localmachine

`   await BlobCache.LocalMachine.InsertObject<List<int>>("FavouriteTeams", FavouriteTeam, TimeSpan.FromDays(300));`

To retrieve data i do

 `  var FavouritesList = await BlobCache.LocalMachine.GetObject<List<int>>("FavouriteTeams");`

The following code works fine in android devices with no issue but when i tried it on ios device/simulator it fails with no errors, the getobject<> just return null when restarting the app.

is there any thing is missing or an extra thing should be configured in ios apps in properties or info.plist.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>