Microsoft.AppCenter.Crashes.TrackError 已过时且在 UWP for Xamarin Forms 上不可用
Microsoft.AppCenter.Crashes.TrackError Obselete and not available on UWP for Xamarin Forms
我正在尝试向我们的应用程序添加一些分析和崩溃日志记录,因此我实施了应用程序中心,因为它看起来非常合适。我们 运行 xamarin 表单针对 iOS/Android/UWP。
我正在尝试在我们的共享项目中添加一些异常处理,以将异常信息抛出到 appCenter。当我将以下内容添加到我们的例外之一时:
Crashes.TrackError(ex);
我收到警告说:
'Crashes.TrackError(Exception, IDictionary<string, string>)' is obsolete: 'This does not exist in UWP and should not be used.'
我们应该使用什么来将异常传递给所有平台的应用程序中心?
windows 平台尚不支持这些 API(截至 2019 年 2 月 13 日)。它们是可见的,因为可移植库需要支持它们,但仅在 Android 和 iOS 平台上实现。
您可以在 https://github.com/Microsoft/AppCenter-SDK-DotNet/issues/669.
收到有关此功能进展的通知
Microsoft AppCenter 目前不支持 UWP 与 Xamarin 上相同的 API 功能集,因此 TrackError 不可用(3 月+时间段)((如 Guillaume Perrot 的回答所述并链接 GitHub 问题亮点) .
Important
UWP only supports starting Crashes with AppCenter.Start and none of the other API calls provided by the Crashes class are supported on UWP, They only work for Xamarin.iOS, Xamarin.Android and Xamarin.Forms apps deployed to iOS and Android.
回复:https://docs.microsoft.com/en-us/appcenter/sdk/crashes/uwp
您可以使用 App Center 的分析作为权宜之计并定义自定义事件 (HandledException
) 并使用 TrackEvent name/event 属性来跟踪您处理的异常(它仅支持 125 个字符/ name/event,但总比没有好。
我正在尝试向我们的应用程序添加一些分析和崩溃日志记录,因此我实施了应用程序中心,因为它看起来非常合适。我们 运行 xamarin 表单针对 iOS/Android/UWP。
我正在尝试在我们的共享项目中添加一些异常处理,以将异常信息抛出到 appCenter。当我将以下内容添加到我们的例外之一时:
Crashes.TrackError(ex);
我收到警告说:
'Crashes.TrackError(Exception, IDictionary<string, string>)' is obsolete: 'This does not exist in UWP and should not be used.'
我们应该使用什么来将异常传递给所有平台的应用程序中心?
windows 平台尚不支持这些 API(截至 2019 年 2 月 13 日)。它们是可见的,因为可移植库需要支持它们,但仅在 Android 和 iOS 平台上实现。
您可以在 https://github.com/Microsoft/AppCenter-SDK-DotNet/issues/669.
收到有关此功能进展的通知Microsoft AppCenter 目前不支持 UWP 与 Xamarin 上相同的 API 功能集,因此 TrackError 不可用(3 月+时间段)((如 Guillaume Perrot 的回答所述并链接 GitHub 问题亮点) .
Important
UWP only supports starting Crashes with AppCenter.Start and none of the other API calls provided by the Crashes class are supported on UWP, They only work for Xamarin.iOS, Xamarin.Android and Xamarin.Forms apps deployed to iOS and Android.
回复:https://docs.microsoft.com/en-us/appcenter/sdk/crashes/uwp
您可以使用 App Center 的分析作为权宜之计并定义自定义事件 (HandledException
) 并使用 TrackEvent name/event 属性来跟踪您处理的异常(它仅支持 125 个字符/ name/event,但总比没有好。