mirror of
https://github.com/bitwarden/mobile
synced 2026-01-03 00:53:27 +00:00
adjusted build configs for ios. safer parsing od push notifications
This commit is contained in:
6434
src/Android/Resources/Resource.Designer.cs
generated
6434
src/Android/Resources/Resource.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -35,10 +35,21 @@ namespace Bit.App.Services
|
||||
|
||||
public void OnMessage(JObject values, DeviceType deviceType)
|
||||
{
|
||||
if(values == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_showNotification = false;
|
||||
Debug.WriteLine("Message Arrived: {0}", JsonConvert.SerializeObject(values));
|
||||
|
||||
var type = (Enums.PushType)values.GetValue("type", StringComparison.OrdinalIgnoreCase).ToObject<short>();
|
||||
JToken token;
|
||||
if(!values.TryGetValue("type", StringComparison.OrdinalIgnoreCase, out token) || token == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var type = (Enums.PushType)token.ToObject<short>();
|
||||
switch(type)
|
||||
{
|
||||
case Enums.PushType.SyncCipherUpdate:
|
||||
|
||||
Reference in New Issue
Block a user