mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
fixes for UWP
This commit is contained in:
parent
e90501a986
commit
c180422e8b
@ -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 New Issue
Block a user