1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-04 09:33:16 +00:00

Added track screen events for pages and controller in extension. UserId refresh on login/logout.

This commit is contained in:
Kyle Spearrin
2016-08-04 00:06:09 -04:00
parent c86c82ee69
commit a831c9ac4f
27 changed files with 498 additions and 6512 deletions

View File

@@ -28,6 +28,7 @@ namespace Bit.App
private readonly ISettings _settings;
private readonly IPushNotification _pushNotification;
private readonly ILockService _lockService;
private readonly IGoogleAnalyticsService _googleAnalyticsService;
public App(
IAuthService authService,
@@ -38,7 +39,8 @@ namespace Bit.App
IFingerprint fingerprint,
ISettings settings,
IPushNotification pushNotification,
ILockService lockService)
ILockService lockService,
IGoogleAnalyticsService googleAnalyticsService)
{
_databaseService = databaseService;
_connectivity = connectivity;
@@ -49,6 +51,7 @@ namespace Bit.App
_settings = settings;
_pushNotification = pushNotification;
_lockService = lockService;
_googleAnalyticsService = googleAnalyticsService;
SetStyles();
@@ -181,6 +184,7 @@ namespace Bit.App
private void Logout(string logoutMessage)
{
_authService.LogOut();
_googleAnalyticsService.RefreshUserId();
_pushNotification.Unregister();
Current.MainPage = new HomePage();
if(!string.IsNullOrWhiteSpace(logoutMessage))