From 6a65b6d735f90a101dfe7844dd6627b4775ffe41 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 11 Apr 2019 14:28:38 -0400 Subject: [PATCH] platform utils init --- src/App/Services/MobilePlatformUtilsService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App/Services/MobilePlatformUtilsService.cs b/src/App/Services/MobilePlatformUtilsService.cs index 5a78065b9..9894cb1f9 100644 --- a/src/App/Services/MobilePlatformUtilsService.cs +++ b/src/App/Services/MobilePlatformUtilsService.cs @@ -22,7 +22,12 @@ namespace Bit.App.Services public MobilePlatformUtilsService(IDeviceActionService deviceActionService) { _deviceActionService = deviceActionService; + } + public string IdentityClientId => "mobile"; + + public void Init() + { MessagingCenter.Subscribe>( Xamarin.Forms.Application.Current, "ShowDialogResolve", (sender, details) => { @@ -51,8 +56,6 @@ namespace Bit.App.Services }); } - public string IdentityClientId => "mobile"; - public Core.Enums.DeviceType GetDevice() { return Device.RuntimePlatform == Device.iOS ? Core.Enums.DeviceType.iOS : Core.Enums.DeviceType.Android;