mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 07:13:33 +00:00
Cleared About information about push registration, just left it in DEBUG mode (#1742)
This commit is contained in:
committed by
GitHub
parent
d0ffb108b1
commit
a183861b87
@@ -133,6 +133,8 @@ namespace Bit.App.Pages
|
||||
{
|
||||
var debugText = string.Format("{0}: {1} ({2})", AppResources.Version,
|
||||
_platformUtilsService.GetApplicationVersion(), _deviceActionService.GetBuildNumber());
|
||||
|
||||
#if DEBUG
|
||||
var pushNotificationsRegistered = ServiceContainer.Resolve<IPushNotificationService>("pushNotificationService").IsRegisteredForPush;
|
||||
var pnServerRegDate = await _storageService.GetAsync<DateTime>(Constants.PushLastRegistrationDateKey);
|
||||
var pnServerError = await _storageService.GetAsync<string>(Constants.PushInstallationRegistrationError);
|
||||
@@ -141,6 +143,9 @@ namespace Bit.App.Pages
|
||||
var errorMessage = string.IsNullOrEmpty(pnServerError) ? string.Empty : $"Push Notifications Server Registration error: {pnServerError}";
|
||||
|
||||
var text = string.Format("© Bitwarden Inc. 2015-{0}\n\n{1}\nPush Notifications registered:{2}\nPush Notifications Server Last Date :{3}\n{4}", DateTime.Now.Year, debugText, pushNotificationsRegistered, pnServerRegDateMessage, errorMessage);
|
||||
#else
|
||||
var text = string.Format("© Bitwarden Inc. 2015-{0}\n\n{1}", DateTime.Now.Year, debugText);
|
||||
#endif
|
||||
|
||||
var copy = await _platformUtilsService.ShowDialogAsync(text, AppResources.Bitwarden, AppResources.Copy,
|
||||
AppResources.Close);
|
||||
|
||||
Reference in New Issue
Block a user