Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always returns v1 on WinUI3 #95

Closed
github-actions bot opened this issue Feb 4, 2024 · 1 comment
Closed

Always returns v1 on WinUI3 #95

github-actions bot opened this issue Feb 4, 2024 · 1 comment
Labels

Comments

@github-actions
Copy link

github-actions bot commented Feb 4, 2024

var version = Services?.GetRequiredService<IInteropService>().GetAppVersion();

//TODO Always returns v1 on WinUI3

        // Ensure the current window is active
        MainWindow.Activate();

#if !HAS_UNO //&& !DEBUG
        //TODO Always returns v1 on WinUI3
        //var version = Services?.GetRequiredService<IInteropService>().GetAppVersion();

        Dictionary<string, string> appLaunchSettings = new()
        {
            { "Account", isLoggedIn ? "Microsoft" : doContinueWithoutLogin ? "Using app without login" : "None" },
            { "Installation Date", AppInfo.Current.Package.InstalledDate.ToString("d", new CultureInfo("en-US")) },
            { "OS & Device", AnalyticsInfo.VersionInfo.DeviceFamily.Replace(".", " ") },
            { "Device Form Factor", AnalyticsInfo.DeviceForm },
            { "Mica Supported", MicaController.IsSupported().ToString() }
        };

        AnalyticsService.TrackEvent(AnalyticsService.Launched, appLaunchSettings);
#endif
    }
}
@github-actions github-actions bot added the todo label Feb 4, 2024
Copy link
Author

Closed in bd27dc7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants