diff --git a/src/iOS/AppDelegate.cs b/src/iOS/AppDelegate.cs index 7057bd35d..a3dc123ec 100644 --- a/src/iOS/AppDelegate.cs +++ b/src/iOS/AppDelegate.cs @@ -42,6 +42,12 @@ namespace Bit.iOS { Forms.Init(); InitApp(); + if(App.Migration.MigrationHelpers.NeedsMigration()) + { + var task = App.Migration.MigrationHelpers.PerformMigrationAsync(); + Task.Delay(2000).Wait(); + } + _deviceActionService = ServiceContainer.Resolve("deviceActionService"); _messagingService = ServiceContainer.Resolve("messagingService"); _broadcasterService = ServiceContainer.Resolve("broadcasterService"); @@ -240,7 +246,7 @@ namespace Bit.iOS // Migration services ServiceContainer.Register("logService", new ConsoleLogService()); ServiceContainer.Register("settingsShim", new App.Migration.SettingsShim()); - if(false && App.Migration.MigrationHelpers.NeedsMigration()) + if(App.Migration.MigrationHelpers.NeedsMigration()) { ServiceContainer.Register( "oldSecureStorageService", new Migration.KeyChainStorageService());