microsoft / appcenter-sdk-dotnet

Development repository for the App Center SDK for .NET platforms, including Xamarin
Other
310 stars 141 forks source link

`SystemInformation.Instance.LaunchTime` doesn't get the launch time correctly #1739

Closed yikuo123 closed 1 year ago

yikuo123 commented 1 year ago

Description

I encountered an issue with SystemInformation.Instance.LaunchTime on Xbox platform. In some cases, it did not work as expected and failed to get the launchTime. I also observed this phenomenon occasionally on PC platform.

I suspect that this might be related to the way the app is terminated, because SystemInformation.Instance.TrackAppUse first checks the args.PreviousExecutionState, which might cause the issue.

Details

  1. What is your app platform (Xamarin.Android or Xamarin.iOS or UWP)?
    • UWP
  2. Which SDK version are you using?
    • 5.0.1
  3. Which OS version did you experience the issue on?
    • WINDOWS 10.0.22621
  4. What device version did you see this error on? Were you using an emulator or a physical device?
    • Xbox and PC
MikhailSuendukov commented 1 year ago

Hello, thank you for reaching out to us, I need some time to investigate your issue. I'll be back soon with information.

yikuo123 commented 1 year ago

Sorry,I just found that this issue is about Windows Community Toolkit, I posted it at a wrong repository.