mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
fixes for UWP
This commit is contained in:
parent
e90501a986
commit
c180422e8b
2 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
|||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<RootNamespace>Bit.App</RootNamespace>
|
||||
<AssemblyName>BitwardenApp</AssemblyName>
|
||||
<NeutralLanguage>en-US</NeutralLanguage>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue