From c180422e8bf6d00b0f21459330de0692112c0bef Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 14 Dec 2017 10:19:50 -0500 Subject: [PATCH] fixes for UWP --- src/App/App.csproj | 1 + src/UWP/Services/UwpPushNotificationService.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App/App.csproj b/src/App/App.csproj index 829c35aaa..3fa8cfb54 100644 --- a/src/App/App.csproj +++ b/src/App/App.csproj @@ -4,6 +4,7 @@ netstandard2.0 Bit.App BitwardenApp + en-US diff --git a/src/UWP/Services/UwpPushNotificationService.cs b/src/UWP/Services/UwpPushNotificationService.cs index 358e0d50f..ff7c26ac2 100644 --- a/src/UWP/Services/UwpPushNotificationService.cs +++ b/src/UWP/Services/UwpPushNotificationService.cs @@ -31,7 +31,7 @@ namespace Bit.UWP.Services Debug.WriteLine("Registering call back for Push Notification Channel"); _channel.PushNotificationReceived += Channel_PushNotificationReceived; - CrossPushNotification.PushNotificationListener.OnRegistered(Token, Device.Windows); + CrossPushNotification.PushNotificationListener.OnRegistered(Token, Device.UWP); } private void Channel_PushNotificationReceived(PushNotificationChannel sender, PushNotificationReceivedEventArgs args) @@ -59,7 +59,7 @@ namespace Bit.UWP.Services } Debug.WriteLine("Sending JObject to PushNotificationListener " + args.NotificationType); - CrossPushNotification.PushNotificationListener.OnMessage(jobject, Device.Windows); + CrossPushNotification.PushNotificationListener.OnMessage(jobject, Device.UWP); } public void Unregister() @@ -70,7 +70,7 @@ namespace Bit.UWP.Services _channel = null; } - CrossPushNotification.PushNotificationListener.OnUnregistered(Device.Windows); + CrossPushNotification.PushNotificationListener.OnUnregistered(Device.UWP); } }