diff --git a/src/Android/MainActivity.cs b/src/Android/MainActivity.cs index de238c41f..ec3e33f0f 100644 --- a/src/Android/MainActivity.cs +++ b/src/Android/MainActivity.cs @@ -41,6 +41,9 @@ namespace Bit.Droid _lockAlarmPendingIntent = PendingIntent.GetBroadcast(this, 0, alarmIntent, PendingIntentFlags.UpdateCurrent); + var policy = new StrictMode.ThreadPolicy.Builder().PermitAll().Build(); + StrictMode.SetThreadPolicy(policy); + _deviceActionService = ServiceContainer.Resolve("deviceActionService"); _messagingService = ServiceContainer.Resolve("messagingService"); _broadcasterService = ServiceContainer.Resolve("broadcasterService");