1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 23:03:23 +00:00

Cleared Console.WriteLine for iOS push notifications issue (#1739)

This commit is contained in:
Federico Maccaroni
2022-01-31 11:12:24 -03:00
committed by GitHub
parent c0c893fd59
commit d0ffb108b1
4 changed files with 23 additions and 33 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.Threading.Tasks;
using Bit.App.Abstractions;
using Foundation;
@@ -22,7 +21,7 @@ namespace Bit.iOS.Services
public async Task RegisterAsync()
{
Console.WriteLine($"{TAG} RegisterAsync");
Debug.WriteLine($"{TAG} RegisterAsync");
var tcs = new TaskCompletionSource<bool>();
@@ -31,11 +30,11 @@ namespace Bit.iOS.Services
{
if (error != null)
{
Console.WriteLine($"{TAG} {error}");
Debug.WriteLine($"{TAG} {error}");
}
else
{
Console.WriteLine($"{TAG} {granted}");
Debug.WriteLine($"{TAG} {granted}");
}
tcs.SetResult(granted);
@@ -43,14 +42,14 @@ namespace Bit.iOS.Services
if (await tcs.Task)
{
Console.WriteLine($"{TAG} RegisterForRemoteNotifications");
Debug.WriteLine($"{TAG} RegisterForRemoteNotifications");
UIApplication.SharedApplication.RegisterForRemoteNotifications();
}
}
public Task UnregisterAsync()
{
Console.WriteLine($"{TAG} UnregisterAsync");
Debug.WriteLine($"{TAG} UnregisterAsync");
UIApplication.SharedApplication.UnregisterForRemoteNotifications();
// TODO: unregister call