The build is success but when it comes to this method, it throws exception. This happened when I updated new packages at NuGet Packages.
public static string checkToken()
{
string token1 = "";
try
{
SQLiteConnection db = DependencyService.Get<SQLiteInterface>().GetConnection();
db.CreateTable<Token>();
Token t = db.Table<Token>().FirstOrDefault();
if (t != null)
{
DateTime dt = t.timeCreated;
DateTime tmp = DateTime.Now;
double diff = (tmp - dt).TotalMinutes;
if (diff > 60.0 || App.IsUserLoggedIn == false)
{
token1 = "expired";
db.Delete(t);
}
else
{
token1 = t.token;
}
}
}
catch (Exception e)
{
e.ToString();
}
return token1;
}
Here is the image.
UPDATED:



