From 44530b63caa10c8ac9907164514dac569ce87b3f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 23:12:54 -0400 Subject: [PATCH] check internet connection --- src/App/App.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index e6f2e0b85..d9e29dfe8 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -308,6 +308,10 @@ namespace Bit.App { return; } + if(Xamarin.Essentials.Connectivity.NetworkAccess == Xamarin.Essentials.NetworkAccess.None) + { + return; + } Task.Run(async () => { var lastSync = await _syncService.GetLastSyncAsync();